The FormattedText type exposes the following members.

Constructors

  NameDescription
Public methodFormattedText()()()()
Creates a new default FormattedText object, which contains only a carriage return character and has no formatting.
Public methodFormattedText(String)
Creates a new FormattedText object with unformatted text.

Methods

  NameDescription
Public methodAsTextRange
Returns a TextRange object that represents the entire text.
Public methodDispose
Releases all resources used by the FormattedText
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFind
Returns a text range identifying the first occurrence of the given string within the text, starting from a given index.
Public methodGetAllCapsStatus()()()()
Returns whether All, None or a Mixed of characters in the entire text are in all caps.
Public methodGetAllCapsStatus(TextRange)
Returns whether All, None or a Mixed set of characters in a given text range are in all caps.
Public methodGetBoldStatus()()()()
Returns whether All, None or a Mixed of characters in the entire text are bold.
Public methodGetBoldStatus(TextRange)
Returns whether All, None or a Mixed set of characters in a given text range are bold.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetIndentLevel
Returns the indent level of the paragraphs in the text range.
Public methodGetItalicStatus()()()()
Returns whether All, None or a Mixed of characters in the entire text are italic.
Public methodGetItalicStatus(TextRange)
Returns whether All, None or a Mixed set of characters in a given text range are italic.
Public methodGetListStartNumber
Returns the list start number of the paragraphs in a given text range.
Public methodGetListType
Returns the ListType of a paragraph.
Public methodGetMaximumIndentLevel
Returns the maximum allowed indent level
Public methodGetMaximumListStartNumber
Returns the maximum allowed list start number.
Public methodGetMinimumListStartNumber
Returns the minumum allowed list start number.
Public methodGetPlainText()()()()
Returns the entire text in a plain text form.
Public methodGetPlainText(TextRange)
Returns a substring of the text in a plain text form. The start and end of the substring is identified by a given TextRange.
Public methodGetSubscriptStatus()()()()
Returns whether All, None or a Mixed of characters in the entire text are subscripted.
Public methodGetSubscriptStatus(TextRange)
Returns whether All, None or a Mixed set of characters in a given text range are subscripted.
Public methodGetSuperscriptStatus()()()()
Returns whether All, None or a Mixed of characters in the entire text are superscripted.
Public methodGetSuperscriptStatus(TextRange)
Returns whether All, None or a Mixed set of characters in a given text range are superscripted.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnderlineStatus()()()()
Returns whether All, None or a Mixed of characters in the entire text are underlined.
Public methodGetUnderlineStatus(TextRange)
Returns whether All, None or a Mixed set of characters in a given text range are underlined.
Public methodSetAllCapsStatus(Boolean)
Sets the characters in the entire text to be in all caps or not.
Public methodSetAllCapsStatus(TextRange, Boolean)
Sets the characters in a given text range to be in all caps or not.
Public methodSetBoldStatus(Boolean)
Sets the characters in the entire text to be bold or not bold.
Public methodSetBoldStatus(TextRange, Boolean)
Sets the characters in a given text range to be bold or not bold.
Public methodSetIndentLevel
Sets the number of tab stops that the paragraph should be indented.
Public methodSetItalicStatus(Boolean)
Sets the characters in the entire text to be italic or not italic.
Public methodSetItalicStatus(TextRange, Boolean)
Sets the characters in a given text range to be italic or not italic.
Public methodSetListStartNumber
Sets the list start number on the paragraphs in a given text range.
Public methodSetListType
Sets the ListType of a paragraph.
Public methodSetPlainText(String)
Sets the entire text with the given text in a plain text form.
Public methodSetPlainText(TextRange, String)
Sets the text with the given text in a plain text form in a range.
Public methodSetSubscriptStatus(Boolean)
Sets the characters in the entire text to be subscript or not subscript.
Public methodSetSubscriptStatus(TextRange, Boolean)
Sets the characters in a given text range to be subscript or not subscript.
Public methodSetSuperscriptStatus(Boolean)
Sets the characters in the entire text to be superscript or not superscript.
Public methodSetSuperscriptStatus(TextRange, Boolean)
Sets the characters in a given text range to be superscript or not superscript.
Public methodSetUnderlineStatus(Boolean)
Sets the characters in the entire text to be underlined or not underlined.
Public methodSetUnderlineStatus(TextRange, Boolean)
Sets the characters in a given text range to be underlined or not underlined.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.

See Also