C# 클래스 Yuhan.WPF.TextEditor.RichTextEditor

Interaction logic for FsRichTextBox.xaml
상속: System.Windows.Controls.UserControl
파일 보기 프로젝트 열기: hansuky/Yuhan

공개 프로퍼티들

프로퍼티 타입 설명
CodeControlsVisibilityProperty System.Windows.DependencyProperty
DocumentProperty System.Windows.DependencyProperty
ToolbarBackgroundProperty System.Windows.DependencyProperty
ToolbarBorderBrushProperty System.Windows.DependencyProperty
ToolbarBorderThicknessProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
Initialize void
OnAlignmentButtonClick void
OnCodeBlockClick void
OnDocumentChanged void
OnFontFamilyComboSelectionChanged void
OnFontSizeComboSelectionChanged void
OnInlineCodeClick void
OnListButtonClick void
OnNormalTextClick void
OnTextBoxSelectionChanged void
OnTextChanged void
SetButtonGroupSelection void
SetToolbar void

공개 메소드들

메소드 설명
RichTextEditor ( ) : System

Default constructor.

UpdateDocumentBindings ( ) : void

Forces an update of the Document property.

비공개 메소드들

메소드 설명
Initialize ( ) : void

Initializes the control.

OnAlignmentButtonClick ( object sender, RoutedEventArgs e ) : void

Implements single-select on the alignment button group.

OnCodeBlockClick ( object sender, RoutedEventArgs e ) : void

Formats code blocks.

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

Called when the Document property is changed

OnFontFamilyComboSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Changes the font family of selected text.

OnFontSizeComboSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Changes the font size of selected text.

OnInlineCodeClick ( object sender, RoutedEventArgs e ) : void

Formats inline code.

OnListButtonClick ( object sender, RoutedEventArgs e ) : void

Implements single-select on the alignment button group.

OnNormalTextClick ( object sender, RoutedEventArgs e ) : void

Formats regular text

OnTextBoxSelectionChanged ( object sender, RoutedEventArgs e ) : void

Updates the toolbar when the text selection changes.

OnTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

Invoked when the user changes text in this user control.

SetButtonGroupSelection ( System.Windows.Controls.Primitives.ToggleButton clickedButton, System.Windows.Controls.Primitives.ToggleButton currentSelectedButton, IEnumerable buttonGroup, bool ignoreClickWhenSelected ) : void

Sets a selection in a button group.

SetToolbar ( ) : void

Sets the toolbar.

메소드 상세

RichTextEditor() 공개 메소드

Default constructor.
public RichTextEditor ( ) : System
리턴 System

UpdateDocumentBindings() 공개 메소드

Forces an update of the Document property.
public UpdateDocumentBindings ( ) : void
리턴 void

프로퍼티 상세

CodeControlsVisibilityProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CodeControlsVisibilityProperty
리턴 System.Windows.DependencyProperty

DocumentProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DocumentProperty
리턴 System.Windows.DependencyProperty

ToolbarBackgroundProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ToolbarBackgroundProperty
리턴 System.Windows.DependencyProperty

ToolbarBorderBrushProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ToolbarBorderBrushProperty
리턴 System.Windows.DependencyProperty

ToolbarBorderThicknessProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ToolbarBorderThicknessProperty
리턴 System.Windows.DependencyProperty