C# Class Xceed.Wpf.Toolkit.RichTextBoxFormatBarManager

Inheritance: System.Windows.DependencyObject
Exibir arquivo Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
FormatBarProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetFormatBar ( UIElement element ) : IRichTextBoxFormatBar
SetFormatBar ( UIElement element, IRichTextBoxFormatBar value ) : void

Private Methods

Method Description
AttachFormatBarToRichtextBox ( global richTextBox, IRichTextBoxFormatBar formatBar ) : void

Attaches a FormatBar to a RichtextBox

HideAdorner ( ) : void

Hides the IRichTextFormatBar that is in the adornor layer.

OnFormatBarPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnPreviewMouseMoveParentWindow ( object sender, System.Windows.Input.MouseEventArgs e ) : void
PositionFormatBar ( Control adorningEditor ) : void

Positions the FormatBar so that is does not go outside the bounds of the RichTextBox or covers the selected text

RichTextBox_MouseButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
RichTextBox_TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
ShowAdorner ( ) : void

Shows the FormatBar

VerifyAdornerLayer ( ) : bool

Ensures that the IRichTextFormatBar is in the adorner layer.

Method Details

GetFormatBar() public static method

public static GetFormatBar ( UIElement element ) : IRichTextBoxFormatBar
element UIElement
return IRichTextBoxFormatBar

SetFormatBar() public static method

public static SetFormatBar ( UIElement element, IRichTextBoxFormatBar value ) : void
element UIElement
value IRichTextBoxFormatBar
return void

Property Details

FormatBarProperty public_oe static_oe property

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