[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.C1LengthTool

C1LengthTool Class

Abstract base class of tools that edit C1Length.

Namespace: C1.WPF.RichTextBox
Assembly: C1.WPF.RichTextBox.Toolbar.4.6.2.dll
Syntax
[TemplatePart(Name = "Value", Type = typeof(C1NumericBox))]
[TemplatePart(Name = "Unit", Type = typeof(ComboBox))]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
public abstract class C1LengthTool : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IUpdateableTool

Constructors

Name Description
C1LengthTool()

Initializes a new instance of a C1LengthTool.

Fields

Name Description
HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

LengthProperty

Identifies the Length dependency property.

RichTextBoxProperty

Identifies the RichTextBox dependency property.

Properties

Name Description
HeaderTemplate

Gets or sets the header template.

Length

Gets or sets the length value.

RichTextBox

Gets or sets the C1RichTextBox this tool edits.

Units

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

GetValue(C1TextRange)
OnApplyTemplate()

Builds the visual tree for the C1LengthTool control when a new template is applied.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

SetValue(C1TextRange, C1Length)
Update()

Method called when the tool should update its state.

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

LengthChanged

Event raised when the Length property has changed.