C# Class Yuhan.WPF.TextEditor.RichTextEditor

Interaction logic for FsRichTextBox.xaml
Inheritance: System.Windows.Controls.UserControl
Afficher le fichier Open project: hansuky/Yuhan

Méthodes publiques

Свойство Type Description
CodeControlsVisibilityProperty System.Windows.DependencyProperty
DocumentProperty System.Windows.DependencyProperty
ToolbarBackgroundProperty System.Windows.DependencyProperty
ToolbarBorderBrushProperty System.Windows.DependencyProperty
ToolbarBorderThicknessProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
RichTextEditor ( ) : System

Default constructor.

UpdateDocumentBindings ( ) : void

Forces an update of the Document property.

Private Methods

Méthode Description
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.

Method Details

RichTextEditor() public méthode

Default constructor.
public RichTextEditor ( ) : System
Résultat System

UpdateDocumentBindings() public méthode

Forces an update of the Document property.
public UpdateDocumentBindings ( ) : void
Résultat void

Property Details

CodeControlsVisibilityProperty public_oe static_oe property

public static DependencyProperty,System.Windows CodeControlsVisibilityProperty
Résultat System.Windows.DependencyProperty

DocumentProperty public_oe static_oe property

public static DependencyProperty,System.Windows DocumentProperty
Résultat System.Windows.DependencyProperty

ToolbarBackgroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows ToolbarBackgroundProperty
Résultat System.Windows.DependencyProperty

ToolbarBorderBrushProperty public_oe static_oe property

public static DependencyProperty,System.Windows ToolbarBorderBrushProperty
Résultat System.Windows.DependencyProperty

ToolbarBorderThicknessProperty public_oe static_oe property

public static DependencyProperty,System.Windows ToolbarBorderThicknessProperty
Résultat System.Windows.DependencyProperty