PrintDocument for WinForms
AddAnchor(String,String,Object) メソッド


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PrintDocument クラス > AddAnchor メソッド : AddAnchor(String,String,Object) メソッド
A string assigned to the C1Anchor.Name of the anchor.
A string assigned to the C1Anchor.Description of the anchor.
Arbitrary data assigned to the C1Anchor.UserData of the anchor.
Adds an anchor (C1Anchor or C1AnchorText) at the current position in the document. Can be used only if C1PrintDocument.IsStartEndDocMode is true.
シンタックス
'宣言
 
Public Overloads Sub AddAnchor( _
   ByVal name As System.String, _
   ByVal description As System.String, _
   ByVal userData As System.Object _
) 
'使用法
 
Dim instance As C1PrintDocument
Dim name As System.String
Dim description As System.String
Dim userData As System.Object
 
instance.AddAnchor(name, description, userData)
public void AddAnchor( 
   System.string name,
   System.string description,
   System.object userData
)

パラメータ

name
A string assigned to the C1Anchor.Name of the anchor.
description
A string assigned to the C1Anchor.Description of the anchor.
userData
Arbitrary data assigned to the C1Anchor.UserData of the anchor.
解説

This method can only be used if the current document is being created using the C1PrintDocument.StartDoc%M:C1.C1Preview.C1PrintDocument.EndDoc% methods (i.e. if C1PrintDocument.IsStartEndDocMode is true).

The type of anchor that this method creates depends on the current state of the document:
参照

C1PrintDocument クラス
C1PrintDocument メンバ
オーバーロード一覧
IsInlineStarted メソッド