...
Description |
---|
Excerpt |
---|
The ParagraphFormatting class is used to specify formatting that should be applied to a paragraph. It also represents the paragraph formatting of named styles in the document. |
Signature | ||||
---|---|---|---|---|
| ||||
public sealed class ParagraphFormatting
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public NotInheritable Class ParagraphFormatting
{signature}
{remarks}There are two ways to obtain an instance of this class: Create a new normal paragraph formatting object using the [Document.CreateParagraphFormatting|Document.CreateParagraphFormatting()] method or access an existing style's paragraph formatting information using the [NamedStyle.ParagraphFormatting|NamedStyle.ParagraphFormatting] property. The {{ParagraphFormatting}} object that is returned can then be used in conjunction with methods in the [Element|Element] class to create paragraphs with specific formatting.
The following example demonstrates both ways of getting paragraph formatting, first by retrieving the BodyText style's paragraph formatting from the document, second by retrieving a copy of the BodyText2 style's paragraph formatting. Then, some properties are set and the formatting is applied to a new paragraph.
{remarks}
{example}{code:csharp|title=C#} |
Remarks |
---|
There are two ways to obtain an instance of this class: Create a new normal paragraph formatting object using the Document.CreateParagraphFormatting method or access an existing style's paragraph formatting information using the NamedStyle.ParagraphFormatting property. The The following example demonstrates both ways of getting paragraph formatting, first by retrieving the BodyText style's paragraph formatting from the document, second by retrieving a copy of the BodyText2 style's paragraph formatting. Then, some properties are set and the formatting is applied to a new paragraph. |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Properties |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
|
Methods |
---|
Name | Description | ||||
---|---|---|---|---|---|
|
...
|
...
|
...
...
|
...
|
...
|
...
| |||
...
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
Classes |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
| |||||||||
| |||||||||
|