Difference between revisions of "UserPreference"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=UserPreference |Description=A user preference |Constructors= {{CGscriptConstructors_Template|Parameters= {{CGscriptParameters_Template|Type=stri...")
 
Line 17: Line 17:
 
{{CGscriptProperties_Template|ReturnType=string|Name=Value|HasGetter=1|HasSetter=1|Description=Get/Set the current value}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=Value|HasGetter=1|HasSetter=1|Description=Get/Set the current value}}
 
}}
 
}}
 +
 +
 +
 +
=== <span style="color:#DF8621">'''Examples'''</span> ===
 +
 +
<source lang="javascript">
 +
 +
</source>
 +
 +
<br/><source lang="javascript">
 +
 +
</source>
 +
 +
<br/><source lang="javascript">
 +
 +
</source>

Revision as of 06:06, 22 November 2016

UserPreference



A user preference

Constructors

  • (string navName "Navigation access value was stored with", int prefType "Unique key for the setting") - Get existing a new personalized stored value.
  • (string navName "Navigation access to associate the value with", int prefType "Unique key for the setting", string value "Value to store") - Create a new or update existing personalized stored value.

Methods

  • Empty Save() - Save the current value
  • string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.
  • string Value { get; set; } - Get/Set the current value



Examples