Figure コンストラクター

定義

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

オーバーロード

名前 説明
Figure()

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

Figure(Block)

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

Figure(Block, TextPointer)

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

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要素の挿入位置を指定TextPointerFigure クラスの新しいインスタンスを初期化します。

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)

適用対象