C# Класс Yuhan.WPF.TextEditor.RichTextEditor

Interaction logic for FsRichTextBox.xaml
Наследование: System.Windows.Controls.UserControl
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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