C# 클래스 AppKit.TextKit.Formatter.LanguageDescriptor

상속: NSObject
파일 보기 프로젝트 열기: xamarin/mac-samples 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

메소드 상세

ClearFormats() 공개 메소드

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.
public ClearFormats ( ) : void
리턴 void

Define() 공개 메소드

Define this instance.
public Define ( ) : void
리턴 void

FormatForPreview() 공개 메소드

Formats the passed in string of text for previewing.
public FormatForPreview ( string text ) : string
text string Text.
리턴 string

LanguageDescriptor() 공개 메소드

Initializes a new instance of the AppKit.TextKit.Formatter.LanguageDescriptor class.
public LanguageDescriptor ( ) : System
리턴 System

LoadColor() 공개 메소드

Loads the requested color from system-wide user defaults.
public LoadColor ( string key, NSColor defaultValue ) : NSColor
key string The user default key for the color.
defaultValue NSColor The default NSColor value.
리턴 NSColor

NSColorFromHexString() 공개 메소드

Converts a web formatted hex string in the form #RRGGBB or #RRGGBBAA into a color.
public NSColorFromHexString ( string hexValue ) : NSColor
hexValue string The web formatted hex string in the form #RRGGBB or #RRGGBBAA.
리턴 NSColor

NSColorToHexString() 공개 메소드

Converts the given color into a web style hex string in the form #RRBBGG or optionally #RRBBGGAA.
public NSColorToHexString ( NSColor color, bool withAlpha ) : string
color NSColor The NSColor to convert.
withAlpha bool If set to true with the alpha (transparency) of the color will be /// included.
리턴 string

SaveColor() 공개 메소드

Saves the given color to the systwm-wide user defaults with the give keyword.
public SaveColor ( string key, NSColor color, bool sync ) : void
key string The user default key to assign the color to.
color NSColor The NSColor to save to the user defaults.
sync bool If set to true sync changes to preferences.
리턴 void