Свойство | Тип | Описание |
---|
Метод | Описание | |
---|---|---|
AppPreferences ( ) : System |
Initializes a new instance of the SourceWriter.AppPreferences class.
|
|
LoadBool ( string key, bool defaultValue ) : bool |
Loads the bool value from the system-wide user defaults.
|
|
LoadColor ( string key, NSColor defaultValue ) : NSColor |
Loads the requested color from system-wide user defaults.
|
|
LoadInt ( string key, int defaultValue ) : int |
Loads the given integer value for the specified key. If the key is not found, the default value is returned.
|
|
NSColorFromHexString ( string hexValue ) : NSColor |
Converts a web formatted hex string in the form #RRGGBB or #RRGGBBAA into a color.
|
|
NSColorToHexString ( NSColor color, bool withAlpha ) : string |
Converts the given color into a web style hex string in the form #RRBBGG or optionally #RRBBGGAA.
|
|
SaveBool ( string key, bool value, bool sync ) : void |
Saves the bool value to the system-wide user defaults.
|
|
SaveColor ( string key, NSColor color, bool sync ) : void |
Saves the given color to the systwm-wide user defaults with the give keyword.
|
|
SaveInt ( string key, int value, bool sync ) : void |
Saves the given integer value to the system-wide user defaults.
|
public LoadBool ( string key, bool defaultValue ) : bool | ||
key | string | The key to load the value for. |
defaultValue | bool | The default value if not found. |
Результат | bool |
public LoadColor ( string key, NSColor defaultValue ) : NSColor | ||
key | string | The user default key for the color. |
defaultValue | NSColor | The default |
Результат | NSColor |
public LoadInt ( string key, int defaultValue ) : int | ||
key | string | Key. |
defaultValue | int | Default value. |
Результат | int |
public NSColorFromHexString ( string hexValue ) : NSColor | ||
hexValue | string | The web formatted hex string in the form #RRGGBB or #RRGGBBAA. |
Результат | NSColor |
public NSColorToHexString ( NSColor color, bool withAlpha ) : string | ||
color | NSColor | The |
withAlpha | bool | If set to |
Результат | string |
public SaveBool ( string key, bool value, bool sync ) : void | ||
key | string | The key to save the value to. |
value | bool | The value to save. |
sync | bool | If set to |
Результат | void |
public SaveColor ( string key, NSColor color, bool sync ) : void | ||
key | string | The user default key to assign the color to. |
color | NSColor | The |
sync | bool | If set to |
Результат | void |
public SaveInt ( string key, int value, bool sync ) : void | ||
key | string | The key for the integer to load. |
value | int | The value of the key. |
sync | bool | If set to |
Результат | void |