Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Creates and returns a Paragraph object that represents a new empty paragraph at the beginning of this Element. The paragraph that is inserted will have the style specified. If this Element is in the middle of a paragraph, the containing paragraph will be split.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Creates and returns a [Paragraph|Paragraph] object that represents a new empty paragraph at the beginning of this Element. The paragraph that is inserted will have the style specified. If this Element is in the middle of a paragraph, the containing paragraph will be split.{excerpt}
{signature:C#}
 public virtual Paragraph InsertParagraphBefore(NamedStyle style)
Signature
{signature}{signature:vb.net
vb.net
}
Public Overridable Function InsertParagraphBefore(ByVal style As NamedStyle) As Paragraph
Parameters

...

A NamedStyle object representing 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 Paragraph object that represents a new empty paragraph at the beginning of this Element. Even though the paragraph is empty there will always be at least a single carriage return.

{signature}
{parameters}
{param:style}A [NamedStyle] object representing 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 {{Paragraph}} object that represents a new empty paragraph at the beginning of this Element. Even though the paragraph is empty there will always be at least a single carriage return.{returns}
{example}{code:csharp|title=C#}
Paragraph p = e.InsertParagraphBefore(doc.Styles[NamedStyle.BuiltIn.Normal]);
{code}
{code:vb.net
|title=vb.net
}
Dim p As Paragraph = e.InsertParagraphBefore(doc.Styles(NamedStyle.BuiltIn.Normal)){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle