The C1TextElement type exposes the following members.

Constructors

  Name Description
Public method C1TextElement
Initializes a new C1TextElement

Methods

  Name Description
Public method ClearValue
Clears the value of style property in this C1TextElement.
Public method Clone
Returns a deep copy of this element.
Public method CreateNewElement
Creates a new C1TextElement with the same type as this.
Public method Enumerate
Enumerates the elements in the document in the specified direction.
Public method EnumerateSubtree
Enumerates all elements in the sub tree where this element is root.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetEnumerator
Returns an enumerator that iterates through the collection.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetParents
Returns the list of parents from the root.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetValue<(Of <<'(T>)>>)
Returns the value of a style property for this C1TextElement.
Public method Group
Groups some of this C1TextElement children, all children in the specified range are added to the new parent, and the parent is inserted at the range start.
Public method IsValidChild
Checks whether a type is a valid child of this C1TextElement.
Public method JoinSibling
Joins this element with its next sibling.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method OnTextChanged
Called when the TextChanged event needs to be fired.
Protected method OnTextChanging
Called when the TextChanging event needs to be fired.
Public method Remove()()()()
Removes the element from the document tree.
Public method Remove(Int32, Int32)
Removes a range of children in this element.
Public method SetValue<(Of <<'(T>)>>)
Sets the value of a style property of this C1TextElement.
Public method ShallowClone
Returns a shallow copy of this element.
Public method Split(Int32)
Splits this C1TextElement at the specified offset into two elements of the same type with the same style properties.
Public method Split(Int32, Boolean)
Splits this C1TextElement at the specified offset into two elements of the same type with the same style properties.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method UnGroup
Ungroups this C1TextElement, that is, this C1TextElement is removed, and all its children are added to its parent.

Fields

  Name Description
Public field Static member BackgroundProperty
Identifies the Background style property.
Public field Static member BorderBrushProperty
Identifies the BorderBrush style property.
Public field Static member BorderThicknessProperty
Identifies the BorderThickness style property.
Public field Static member CornerRadiusProperty
Identifies the CornerRadius style property.
Public field Static member CursorProperty
Identifies the Cursor style property.
Public field Static member FontFamilyProperty
Identifies the FontFamily style property.
Public field Static member FontSizeProperty
Identifies the FontSize style property.
Public field Static member FontStyleProperty
Identifies the FontStyle style property.
Public field Static member FontWeightProperty
Identifies the FontWeight style property.
Public field Static member ForegroundProperty
Identifies the Foreground style property.
Public field Static member HeightProperty
Identifies the Height style property.
Public field Static member IsEditableProperty
Identifies the IsEditable style property.
Public field Static member LineHeightProperty
Identifies the LineHeight style property.
Public field Static member MarginProperty
Identifies the Margin style property.
Public field Static member MaxHeightProperty
Identifies the MaxHeight style property.
Public field Static member MaxWidthProperty
Identifies the MaxWidth style property.
Public field Static member MinHeightProperty
Identifies the MinHeight style property.
Public field Static member MinWidthProperty
Identifies the MinWidth style property.
Public field Static member PaddingProperty
Identifies the Padding style property.
Public field Static member TextDecorationsProperty
Identifies the TextDecorations style property.
Public field Static member TextEffectProperty
Identifies the TextEffect style property.
Public field Static member ToolTipProperty
Identifies the ToolTip style property.
Public field Static member VerticalAlignmentProperty
Identifies the VerticalAlignment style property.
Public field Static member VisibilityProperty
Identifies the Visibility style property.
Public field Static member WidthProperty
Identifies the Width style property.

Properties

  Name Description
Public property Background
Gets or sets the Brush used to fill the background of the content area.
Public property BorderBrush
Gets or sets the Brush used to fill the border of a text element.
Public property BorderThickness
Gets or sets the border thickness of a text element.
Public property Children
Get all children of this C1TextElement.
Public property ContentEnd
Gets the C1TextPointer at the end of this text element.
Public property ContentRange
Gets the C1TextRange of this element's content.
Public property ContentStart
Gets the C1TextPointer at the start of this text element.
Public property CornerRadius
Gets or sets the corner radius for the border of a text element.
Public property Cursor
Gets or sets the Cursor displayed when the mouse is over this element.
Public property EndTag
Returns the EndTag of this C1TextElement.
Public property FontFamily
Gets or sets the preferred font family for the content of the element.
Public property FontSize
Gets or sets the font size for the content of the element.
Public property FontStyle
Gets or sets the font style for the content of the element.
Public property FontWeight
Gets or sets the font weight for the content of the element.
Public property Foreground
Gets or sets the Brush to apply to the content of the element.
Public property Height
Gets or sets the height of this C1TextElement.
Public property Id
Gets or sets an identifier for this text element.
Public property Index
Get the index of this C1TextElement in its parent Children collection.
Public property IsCollapsed
Returns whether this element is collapsed, that is, if its Visibility, or that of one of its parents, is Collapsed.
Public property IsEditable
Gets or sets whether the content of this element are editable in a C1RichTextBox.
Public property IsLeaf
Returns whether this element is a leaf in the document tree.
Public property IsRoot
Returns whether this element is the root of its tree.
Public property LineHeight
Gets or sets a number that is multiplied by the computed height of a line to obtain the final height.
Public property Margin
Gets or sets the margin of a text element.
Public property MaxHeight
Gets or sets the max-height of this C1TextElement.
Public property MaxWidth
Gets or sets the max-width of this C1TextElement.
Public property MinHeight
Gets or sets the min-height of this C1TextElement.
Public property MinWidth
Gets or sets the min-width of this C1TextElement.
Public property NextSibling
Gets the next sibling of this element, or null if this is the last child.
Public property Padding
Gets or sets the padding of a text element.
Public property Parent
Gets the parent of this element.
Public property PreviousSibling
Gets the previous sibling of this element, or null if this is the first child.
Public property Root
Returns the root element of this element's tree.
Public property StartTag
Returns the StartTag of this C1TextElement.
Public property Style
Returns the style values for this C1TextElement.
Public property TextDecorations
Gets or sets a collection of text decorations to apply to the content of the element.
Public property ToolTip
Gets or sets the ToolTip displayed when the mouse is over this element.
Public property VerticalAlignment
Gets or sets a value indicating how elements are aligned in a line.
Public property Visibility
Gets or sets the visibility of this element.
Public property Width
Gets or sets the width of this C1TextElement.

Events

  Name Description
Public event ChildrenChanged
Fires when the children collection of this C1TextElement changes.
Public event TextChanged
Fires after a text change occurs in the sub tree where this element is root.
Public event TextChanging
Fires before a text change occurs in the sub tree where this element is root.

Explicit Interface Implementations

See Also