Xceed Words for .NET v3.0 Documentation
InsertCaptionAfterSelf Method (InsertBeforeOrAfter)


Xceed.Document.NET Assembly > Xceed.Document.NET Namespace > InsertBeforeOrAfter Class : InsertCaptionAfterSelf Method
The caption text to insert.
Inserts an incremental caption text under the current picture, table or paragraph.
Syntax
'Declaration
 
Public Overridable Function InsertCaptionAfterSelf( _

   ByVal captionText As String _

) As Paragraph
'Usage
 
Dim instance As InsertBeforeOrAfter

Dim captionText As String

Dim value As Paragraph

 

value = instance.InsertCaptionAfterSelf(captionText)
public virtual Paragraph InsertCaptionAfterSelf( 

   string captionText

)

Parameters

captionText
The caption text to insert.

Return Value

The new paragraph with the inserted text.
Example
If the captionText is "Figure", the result will be "Figure 1". If this method is used a second time in the document, the result will be "Figure 2", and so on. However, if this method is used with another captionText value, such as "Table", the result will be a new incremental caption series: "Table 1", "Table 2" and so on.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

InsertBeforeOrAfter Class
InsertBeforeOrAfter Members