Represents all the formatting for a paragraph.
For a list of all members of this type, see ParagraphFormat Members.
System.Object
Aspose.Editor.Core.Attribute.AttrGroup
Aspose.Editor.Core.Attribute.RangeAttrGroup
Aspose.Editor.Client.ParagraphFormat
[Visual Basic]NotInheritable Public Class ParagraphFormat
Remarks
You do not create instances of the ParagraphFormat class directly. You access ParagraphFormat as a property of objects that can have paragraph formatting, for example the Format property of the Paragraph or Range object.
Example
Creates a simple Hello World document.
[C#]
Document doc = new Document();
Range range = doc.GetRange();
range.Text = "Hello World!";
range.Font.Name = "Arial";
range.Font.Size = 48;
range.Font.Italic = true;
range.Font.Color = Color.Red;
range.ParagraphFormat.SpaceBefore = 24;
range.ParagraphFormat.Alignment = ParagraphAlignment.Center;
range.ParagraphFormat.SpaceAfter = 24;
doc.Save(MyPath + "ExRange.HelloWorld Out.xml");
[Visual Basic]
Dim doc As New Document()
Dim range As Range = doc.GetRange()
range.Text = "Hello World!"
range.Font.Name = "Arial"
range.Font.Size = 48
range.Font.Italic = True
range.Font.Color = Color.Red
range.ParagraphFormat.SpaceBefore = 24
range.ParagraphFormat.Alignment = ParagraphAlignment.Center
range.ParagraphFormat.SpaceAfter = 24
doc.Save(MyPath & "ExRange.HelloWorld Out.xml")
Requirements
Namespace: Aspose.Editor.Client
Assembly: Aspose.Editor.Client (in Aspose.Editor.Client.dll)
See Also
ParagraphFormat Members | Aspose.Editor.Client Namespace | Paragraph | Range