Delen via


ITextParagraphFormat Interface

Definition

Defines the default paragraph formatting attributes of a document, or the current paragraph formatting attributes of a text range.

public interface class ITextParagraphFormat
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(754503590, 18038, 18826, 147, 245, 187, 219, 252, 11, 216, 131)]
struct ITextParagraphFormat
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(754503590, 18038, 18826, 147, 245, 187, 219, 252, 11, 216, 131)]
public interface ITextParagraphFormat
Public Interface ITextParagraphFormat
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Alignment

Gets or sets the paragraph alignment.

FirstLineIndent

Gets the amount used to indent the first line of a paragraph relative to the left indent.

KeepTogether

Gets or sets whether page breaks are allowed in paragraphs.

KeepWithNext

Gets or sets whether page breaks are allowed between paragraphs in a range.

LeftIndent

Gets the amount used to indent all lines except the first line of a paragraph.

LineSpacing

Gets the paragraph line-spacing value.

LineSpacingRule

Gets the paragraph line-spacing rule.

ListAlignment

Gets or sets the alignment to use for bulleted and numbered lists.

ListLevelIndex

Gets or sets the list level index used with paragraphs.

ListStart

Gets or sets the starting value or code of a list numbering sequence.

ListStyle

Gets or sets the style used to mark the item paragraphs in a list.

ListTab

Gets or sets the list tab setting, which is the distance between the first indent and the start of the text on the first line.

ListType

Gets or sets the kind of characters used to mark the item paragraphs in a list.

NoLineNumber

Gets or sets whether paragraph numbering is suppressed.

PageBreakBefore

Gets or sets whether there is a page break before a paragraph.

RightIndent

Gets or sets the right margin of a paragraph.

RightToLeft

Gets or sets whether the paragraph uses right-to-left formatting.

SpaceAfter

Gets or sets the amount of vertical space that follows a paragraph.

SpaceBefore

Gets or sets the amount of vertical space above a paragraph.

Style

Gets or sets the paragraph style.

TabCount

Retrieves the tab count.

WidowControl

Gets or sets whether widow and orphan suppression is on or off.

Methods

AddTab(Single, TabAlignment, TabLeader)

Adds a new tab at the specified position.

ClearAllTabs()

Clears all tabs, reverting to equally spaced tabs with the default tab spacing.

DeleteTab(Single)

Deletes the tab at the specified position.

GetClone()

Creates a new object that is identical to this paragraph format object.

GetTab(Int32, Single, TabAlignment, TabLeader)

Retrieves information about the specified tab.

IsEqual(ITextParagraphFormat)

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

SetClone(ITextParagraphFormat)

Sets the paragraph formatting by copying another paragraph formatting object.

SetIndents(Single, Single, Single)

Sets the first-line indent, the left indent, and the right indent for a paragraph.

SetLineSpacing(LineSpacingRule, Single)

Sets the paragraph line-spacing rule and the amount of line spacing for a paragraph.

Applies to