[]
Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if IsStartEndDocMode is true.
public void AddAnchor(string name, string description, object userData)
Type | Name | Description |
---|---|---|
string | name | A string assigned to the Name of the anchor. |
string | description | A string assigned to the Description of the anchor. |
object | userData | Arbitrary data assigned to the UserData of the anchor. |
This method can only be used if the current document is being created using the StartDoc()/EndDoc() methods (i.e. if IsStartEndDocMode is true).
The type of anchor that this method creates depends on the current state of the document:Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if IsStartEndDocMode is true.
This method is equivalent to AddAnchor(string, string, object) with the last parameter (user data) specified as null value.
public void AddAnchor(string name, string description)
Type | Name | Description |
---|---|---|
string | name | A string assigned to the Name of the anchor. |
string | description | A string assigned to the Description of the anchor. |
Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if IsStartEndDocMode is true.
This method is equivalent to AddAnchor(string, string, object) with the last two parameters (description and user data) specified as null values.
public void AddAnchor(string name)
Type | Name | Description |
---|---|---|
string | name | A string assigned to the Name of the anchor. |