This documentation is archived and is not being maintained.

TextPattern Members

Represents controls that contain text.

The following tables list the members exposed by the TextPattern type.

  Name Description
Public field Static AnimationStyleAttribute Identifies the AnimationStyle attribute of a text range.
Public field Static BackgroundColorAttribute Identifies the BackgroundColor attribute of a text range.
Public field Static BulletStyleAttribute Identifies the BulletStyle attribute of a text range.
Public field Static CapStyleAttribute Identifies the CapStyle attribute of a text range.
Public field Static CultureAttribute Identifies the Culture (CultureInfo) attribute of a text range down to the sub-language level; for example, French–Switzerland (fr-CH) instead of French (fr).
Public field Static FontNameAttribute Identifies the FontName attribute of a text range.
Public field Static FontSizeAttribute Identifies the FontSize attribute of a text range.
Public field Static FontWeightAttribute Identifies the FontWeight attribute of a text range.
Public field Static ForegroundColorAttribute Identifies the ForegroundColor (COLORREF) attribute of a text range.
Public field Static HorizontalTextAlignmentAttribute Identifies the HorizontalTextAlignment attribute of a text range.
Public field Static IndentationFirstLineAttribute Identifies the IndentationFirstLine (TextIndent) attribute of a text range.
Public field Static IndentationLeadingAttribute Identifies the IndentationLeading(TextIndent) attribute of a text range.
Public field Static IndentationTrailingAttribute Identifies the IndentationTrailing(TextIndent) attribute of a text range.
Public field Static IsHiddenAttribute Identifies the IsHidden attribute of a text range.
Public field Static IsItalicAttribute Identifies the IsItalic (FontStyle) attribute of a text range.
Public field Static IsReadOnlyAttribute Identifies the IsReadOnly attribute of a text range.
Public field Static IsSubscriptAttribute Identifies the IsSubscript (FontVariants) attribute of a text range.
Public field Static IsSuperscriptAttribute Identifies the IsSuperscript (FontVariants) attribute of a text range.
Public field Static MarginBottomAttribute Identifies the MarginBottom (PageSettings) attribute of a text range.
Public field Static MarginLeadingAttribute Identifies the MarginLeading (PageSettings) attribute of a text range.
Public field Static MarginTopAttribute Identifies the MarginTop (PageSettings) attribute of a text range.
Public field Static MarginTrailingAttribute Identifies the MarginTrailing (PageSettings) attribute of a text range.
Public field Static MixedAttributeValue Identifies whether the value of a given attribute varies over a text range in a rich edit control.
Public field Static OutlineStylesAttribute Identifies the OutlineStyles (OutlineStyles) attribute of a text range.
Public field Static OverlineColorAttribute Identifies the OverlineColor attribute of a text range.
Public field Static OverlineStyleAttribute Identifies the OverlineStyle (TextDecorationLineStyle) attribute of a text range.
Public field Static Pattern Identifies the TextPattern pattern.
Public field Static StrikethroughColorAttribute Identifies the StrikethroughColor attribute of a text range.
Public field Static StrikethroughStyleAttribute Identifies the StrikethroughStyle (TextDecorationLineStyle) attribute of a text range.
Public field Static TabsAttribute Identifies the Tabs attribute of a text range.
Public field Static TextChangedEvent Identifies the event raised whenever textual content is modified.
Public field Static TextFlowDirectionsAttribute Identifies the TextFlowDirections (FlowDirections) attribute of a text range.
Public field Static TextSelectionChangedEvent Identifies the event raised when the text selection is modified.
Public field Static UnderlineColorAttribute Identifies the UnderlineColor attribute of a text range.
Public field Static UnderlineStyleAttribute Identifies the UnderlineStyle (TextDecorationLineStyle) attribute of a text range.
Top

  Name Description
Public property DocumentRange Gets a text range that encloses the main text of a document.
Public property SupportedTextSelection Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetSelection Retrieves a collection of disjoint text ranges associated with the current text selection or selections.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method GetVisibleRanges Retrieves an array of disjoint text ranges from a text container where each text range begins with the first partially visible line through to the end of the last partially visible line.
Public method RangeFromChild Retrieves a text range enclosing a child element such as an image, hyperlink, Microsoft Excel spreadsheet, or other embedded object.
Public method RangeFromPoint Returns the degenerate (empty) text range nearest to the specified screen coordinates.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Frees resources and performs other cleanup operations before the object is reclaimed by garbage collection. (inherited from BasePattern)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
Show: