Click or drag to resize
TextPara Class
Provides access to the paragraph format for a text range.
Inheritance Hierarchy
SystemObject
  TextObjectModelTextPara

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public class TextPara : IEquatable<TextPara>, 
	ICloneable, IDisposable

The TextPara type exposes the following members.

Methods
  NameDescription
Public methodAddTab
Adds a tab at the displacement position.
Public methodClearAllTabs
Clears all tabs, reverting to equally spaced tabs with the default tab spacing.
Public methodClone
Creates a duplicate of the specified paragraph format object.
Public methodCopyFrom
Sets the paragraph formatting by copying another paragraph object.
Public methodDeleteTab
Deletes a tab at a specified displacement.
Public methodDispose
Releases all resources used by the TextPara
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the TextPara and optionally releases the managed resources
Public methodEquals(Object)
Tests if this TextPara is considered equal to another object.
(Overrides ObjectEquals(Object).)
Public methodEquals(TextPara)
Tests if this TextPara is considered equal to another.
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetBorders
(TOM 2 only) Gets the borders collection.
Public methodGetHashCode
Calculates a hash code for this object.
(Overrides ObjectGetHashCode.)
Public methodGetProperty
(TOM 2 only) Gets the value of a property.
Public methodGetTab(Int32)
Retrieves tab displacement for the specified tab.
Public methodGetTab(TabRelativePosition, Single)
Retrieves tab displacement for the specified tab.
Public methodReset
Resets the paragraph formatting to the default values.
Public methodSetIndents
Sets the first-line indent, the left indent, and the right indent for a paragraph.
Public methodSetProperty
(TOM 2 only) Sets the value of the specified property.
Top
Properties
  NameDescription
Public propertyAlignment
Gets or sets the current paragraph alignment value.
Public propertyCanChange
Determines whether the paragraph formatting can be changed.
Public propertyEffects
(TOM 2 only) Gets or sets the character format effects.
Public propertyFirstLineIndent
Gets the amount used to indent the first line of a paragraph relative to the left indent. The left indent is the indent for all lines of the paragraph except the first line.
Public propertyFontAlignment
(TOM 2 only) Gets or sets the paragraph font alignment state.
Public propertyHangingPunctuation
(TOM 2 only) Gets or sets whether to hang punctuation symbols on the right margin when the paragraph is justified.
Public propertyHyphenation
Gets or sets the current paragraph alignment value.
Public propertyLeftIndent
Gets the distance used to indent all lines except the first line of a paragraph. The distance is relative to the left margin.
Public propertyListAlignment
Gets or sets the kind of alignment to use for bulleted and numbered lists.
Public propertyListBulletChar
Gets or sets the Unicode character (>32) to use for bullets.
Public propertyListLevelIndex
Gets or sets the list level index used with paragraphs.
Public propertyListNumberingFormat
Gets or sets the format to use with a numbered list.
Public propertyListStart
Gets or sets the starting value or code of a list numbering sequence.
Public propertyListTab
Retrieves the list tab setting, which is the distance between the first-line indent and the text on the first line. The numbered or bulleted text is left-justified, centered, or right-justified at the first-line indent value.
Public propertyListType
Gets or sets the kind of numbering to use with paragraphs.
Protected propertyListTypeInternal
Gets or sets the kind of numbering to use with paragraphs.
Public propertyRightIndent
Gets or sets the size of the right margin indent of a paragraph.
Public propertySnapToGrid
(TOM 2 only) Gets or sets whether paragraph lines snap to a vertical grid that could be defined for the whole document.
Public propertySpaceAfter
Gets or sets the amount of vertical space below a paragraph.
Public propertySpaceBefore
Gets or sets the amount of vertical space above a paragraph.
Public propertyStyle
Gets or sets the style handle to the paragraphs in the specified range.
Public propertyTabCount
Retrieves the tab count.
Public propertyTrimPunctuationAtStart
(TOM 2 only) Gets or sets whether to trim the leading space of a punctuation symbol at the start of a line.
Top
Remarks

Managed wrapper class for the COM interface ITextPara, including ITextPara2 functionality.

Most properties of this class are implemented using nullable types. If a property returns null, its value is undefined. Properties may be undefined if the range spans several paragraph formats.

See Also