Click or drag to resize
TextStrings Class
(TOM 2 only) Represents a collection of rich-text strings that are useful for manipulating rich text.
Inheritance Hierarchy
SystemObject
  TextObjectModelTextStrings

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public class TextStrings : IDisposable

The TextStrings type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds a string to the end of the collection.
Public methodAppend
Appends a string to the string at the specified index in the collection.
Public methodCat2
Concatenates two strings.
Public methodCatTop2
Inserts text between the top two strings in a collection.
Public methodDeleteRange
Deletes the contents of a given range.
Public methodDispose
Releases all resources used by the TextStrings
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the TextStrings and optionally releases the managed resources
Public methodEncodeFunction
Encodes an object, given a set of properties.
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetCharacterCount
Gets the count of characters for a selected string index.
Public methodInsertNullStr
Inserts a null string in the collection at the specified string index.
Public methodMoveBoundary
Moves the start boundary of a string, by index, by the specified number of characters.
Public methodPrefixTop
Prefixes a string to the top string in the collection.
Public methodRemove(Int32)
Removes a string from the string collection at the specified index.
Public methodRemove(Int32, Int32)
Removes one or more strings from the string collection, starting at the specified index.
Public methodSetFormattedText
Replaces text with formatted text.
Public methodSetOpCp
Sets the character position in the source range's story that has the desired character formatting attributes.
Public methodSuffixTop
Suffixes a string to the top string in the collection.
Public methodSwap
Swaps the top two strings in the collection.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of strings in the string collection.
Public propertyItem
Top
Remarks
Managed wrapper class for the COM interface ITextStrings.
See Also