Skip to main content
ITextPara2 interface

Text Object Model (TOM) rich text-range attributes are accessed through a pair of dual interfaces, ITextFont and ITextPara.

The ITextPara2 interface extends ITextPara, providing the equivalent of the Microsoft Word format-paragraph dialog.

When to implement

Applications typically do not implement the ITextPara2 interface. Microsoft text solutions, such as rich edit controls, implement ITextPara2 as part of their TOM implementations.

When to use

Applications can retrieve an ITextPara2 pointer for a text range by calling the ITextRange2::GetPara2 method.

Members

The ITextPara2 interface inherits from ITextPara. ITextPara2 also has these types of members:

Methods

The ITextPara2 interface has these methods.

MethodDescription
GetBorders

Gets the borders collection.

GetDuplicate2

Gets a duplicate of this text paragraph format object.

GetEffects

Gets the paragraph format effects.

GetFontAlignment

Gets the paragraph font alignment state.

GetHangingPunctuation

Gets whether to hang punctuation symbols on the right margin when the paragraph is justified.

GetProperty

Gets the value of the specified property.

GetSnapToGrid

Gets whether paragraph lines snap to a vertical grid that could be defined for the whole document.

GetTrimPunctuationAtStart

Gets whether to trim the leading space of a punctuation symbol at the start of a line.

IsEqual2

Determines whether this text paragraph object has the same properties as the specified text paragraph object.

SetDuplicate2

Sets the properties of this object by copying the properties of another text paragraph object.

SetEffects

Sets the paragraph format effects.

SetFontAlignment

Sets the paragraph font alignment for CJK text.

SetHangingPunctuation

Sets whether to hang punctuation symbols on the right margin when the paragraph is justified.

SetProperty

Sets the property value.

SetSnapToGrid

Sets whether paragraph lines snap to a vertical grid that could be defined for the whole document.

SetTrimPunctuationAtStart

Sets whether to trim the leading space of a punctuation symbol at the start of a line.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll