Excerpt |
---|
Creates and returns an empty Paragraph at the point represented by this Position, formatted with the specified style. If this Position is in the middle of a paragraph the containing paragraph will be split. |
Signature |
---|
C# | C# | Wiki Markup |
---|
{description}
{excerpt}Creates and returns an empty [Paragraph|Paragraph] at the point represented by this Position, formatted with the specified style. If this Position is in the middle of a paragraph the containing paragraph will be split.{excerpt}
{signature:C#}
public Paragraph InsertParagraph(NamedStyle style)
|
Signature |
---|
{signature}{signature:vb.net | vb.net | }
Public Function InsertParagraph(ByVal style As NamedStyle) As Paragraph
|
...
The base style of this paragraph. The base style also affects the character style of any text added to this paragraph. If this is null, the style will be "Normal".
Returns |
---|
A newly created Paragraph . Even though the paragraph is empty there will always be at least a single carriage return. |
Example |
---|
Code Block |
---|
| csharp | csharp |
title | C# |
---|
{signature}
{parameters}
{param:style}The base style of this paragraph. The base style also affects the character style of any text added to this paragraph. If this is null, the style will be "Normal".{param}
{returns}A newly created {{Paragraph}}. Even though the paragraph is empty there will always be at least a single carriage return.{returns}
{example}{code:csharp|title=C#}
Paragraph p = pos.InsertParagraph(oDocument.Styles[NamedStyle.BuiltIn.Normal]);
Code Block |
---|
{code}
{code:vb.net
vb.net | title | |title=vb.net
}
Dim p As Paragraph = pos.InsertParagraph(oDocument.Styles(NamedStyle.BuiltIn.Normal)){code}
{example}