PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.6 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / AddAnchor Method / AddAnchor(String,String) Method
A string assigned to the C1.C1Preview.C1Anchor.Name of the anchor.
A string assigned to the C1.C1Preview.C1Anchor.Description of the anchor.

In This Topic
    AddAnchor(String,String) Method
    In This Topic
    Adds an anchor (C1.C1Preview.C1Anchor or C1.C1Preview.C1AnchorText) at the current position in the document. Can be used only if C1.C1Preview.C1PrintDocument.IsStartEndDocMode is true.

    This method is equivalent to C1.C1Preview.C1PrintDocument.AddAnchor with the last parameter (user data) specified as null value.

    Syntax
    'Declaration
     
    Public Overloads Sub AddAnchor( _
       ByVal name As String, _
       ByVal description As String _
    ) 
    public void AddAnchor( 
       string name,
       string description
    )

    Parameters

    name
    A string assigned to the C1.C1Preview.C1Anchor.Name of the anchor.
    description
    A string assigned to the C1.C1Preview.C1Anchor.Description of the anchor.
    See Also