Свойство | Type | Description |
---|
Méthode | Description | |
---|---|---|
ClearFormats ( ) : void |
Resets all of the AppKit.TextKit.Formatter.FormatDescriptor for this language to their default states of unmacthed and inactive. This should only be called ba a AppKit.TextKit.Formatter.LanguageFormatter. |
|
Define ( ) : void |
Define this instance.
|
|
FormatForPreview ( string text ) : string |
Formats the passed in string of text for previewing.
|
|
LanguageDescriptor ( ) : System |
Initializes a new instance of the AppKit.TextKit.Formatter.LanguageDescriptor class.
|
|
LoadColor ( string key, NSColor defaultValue ) : NSColor |
Loads the requested color from system-wide user defaults.
|
|
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.
|
|
SaveColor ( string key, NSColor color, bool sync ) : void |
Saves the given color to the systwm-wide user defaults with the give keyword.
|
public FormatForPreview ( string text ) : string | ||
text | string | Text. |
Résultat | string |
public LoadColor ( string key, NSColor defaultValue ) : NSColor | ||
key | string | The user default key for the color. |
defaultValue | NSColor | The default |
Résultat | NSColor |
public NSColorFromHexString ( string hexValue ) : NSColor | ||
hexValue | string | The web formatted hex string in the form #RRGGBB or #RRGGBBAA. |
Résultat | NSColor |
public NSColorToHexString ( NSColor color, bool withAlpha ) : string | ||
color | NSColor | The |
withAlpha | bool | If set to |
Résultat | string |
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 |
Résultat | void |