C# Class IL.View.Controls.CodeView.CodeTextBlock

Inheritance: System.Windows.Controls.Control, ICodeView
ファイルを表示 Open project: DenisVuyka/IL.View

Public Properties

Property Type Description
DefaultStyleSheetProperty System.Windows.DependencyProperty
SourceCodeProperty System.Windows.DependencyProperty
SourceLanguageProperty System.Windows.DependencyProperty

Public Methods

Method Description
CodeTextBlock ( ) : System

Initializes a new instance of the SyntaxHighlightingTextBlock control.

OnApplyTemplate ( ) : void

Overrides the on apply template method.

Private Methods

Method Description
CreateLanguageInstance ( SourceLanguageType type ) : ILanguage

Retrieves the language instance used by the highlighting system.

HighlightContents ( ) : void

Clears and updates the contents.

OnDefaultStyleSheetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSourceCodePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

SourceCodeProperty property changed handler.

OnSourceLanguagePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

SourceLanguageProperty property changed handler.

Method Details

CodeTextBlock() public method

Initializes a new instance of the SyntaxHighlightingTextBlock control.
public CodeTextBlock ( ) : System
return System

OnApplyTemplate() public method

Overrides the on apply template method.
public OnApplyTemplate ( ) : void
return void

Property Details

DefaultStyleSheetProperty public_oe static_oe property

public static DependencyProperty,System.Windows DefaultStyleSheetProperty
return System.Windows.DependencyProperty

SourceCodeProperty public_oe static_oe property

Identifies the SourceCode dependency property.
public static DependencyProperty,System.Windows SourceCodeProperty
return System.Windows.DependencyProperty

SourceLanguageProperty public_oe static_oe property

Identifies the SourceLanguage dependency property.
public static DependencyProperty,System.Windows SourceLanguageProperty
return System.Windows.DependencyProperty