Figure コンストラクター

定義

Figure クラスの新しいインスタンスを初期化します。

オーバーロード

Figure()

Figure クラスの新しい空のインスタンスを初期化します。

Figure(Block)

指定した Figure オブジェクトを新しい Block の初期コンテンツとして受け取って、Figure クラスの新しいインスタンスを初期化します。

Figure(Block, TextPointer)

指定した Figure オブジェクトを新しい Block の初期コンテンツとして受け取ると共に、新しい Figure 要素の挿入位置を指定する TextPointer を受け取って、Figure クラスの新しいインスタンスを初期化します。

Figure()

Figure クラスの新しい空のインスタンスを初期化します。

public:
 Figure();
public Figure ();
Public Sub New ()

適用対象

Figure(Block)

指定した Figure オブジェクトを新しい Block の初期コンテンツとして受け取って、Figure クラスの新しいインスタンスを初期化します。

public:
 Figure(System::Windows::Documents::Block ^ childBlock);
public Figure (System.Windows.Documents.Block childBlock);
new System.Windows.Documents.Figure : System.Windows.Documents.Block -> System.Windows.Documents.Figure
Public Sub New (childBlock As Block)

パラメーター

childBlock
Block

新しい Block の初期コンテンツを指定する Figure オブジェクト。

次の例では、このコンストラクターの使用方法を示します。

Paragraph parx = new Paragraph(new Run("Figure content..."));
Figure figx = new Figure(parx);
Dim parx1 As New Paragraph(New Run("Figure content..."))
Dim figx1 As New Figure(parx1)

適用対象

Figure(Block, TextPointer)

指定した Figure オブジェクトを新しい Block の初期コンテンツとして受け取ると共に、新しい Figure 要素の挿入位置を指定する TextPointer を受け取って、Figure クラスの新しいインスタンスを初期化します。

public:
 Figure(System::Windows::Documents::Block ^ childBlock, System::Windows::Documents::TextPointer ^ insertionPosition);
public Figure (System.Windows.Documents.Block childBlock, System.Windows.Documents.TextPointer insertionPosition);
new System.Windows.Documents.Figure : System.Windows.Documents.Block * System.Windows.Documents.TextPointer -> System.Windows.Documents.Figure
Public Sub New (childBlock As Block, insertionPosition As TextPointer)

パラメーター

childBlock
Block

新しい Block の初期コンテンツを指定する Figure オブジェクト。 このパラメーターは、null でもかまいません。その場合、Block は挿入されません。

insertionPosition
TextPointer

TextPointer 要素の作成後に、この要素を挿入する挿入位置を指定する Figure。自動挿入を行わない場合は null

次の例では、このコンストラクターの使用方法を示します。

Span spanx = new Span();
Paragraph parx = new Paragraph(new Run("Figure content..."));
// This will populate the Figure with the Paragraph parx, and insert
// the Figure at the beginning of the Span spanx.
Figure figx = new Figure(parx, spanx.ContentStart);
Dim spanx2 As New Span()
Dim parx2 As New Paragraph(New Run("Figure content..."))
    ' This will populate the Figure with the Paragraph parx, and insert
    ' the Figure at the beginning of the Span spanx.
Dim figx2 As New Figure(parx2, spanx2.ContentStart)

適用対象