Figure コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Figure クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Figure() |
Figure クラスの新しい空のインスタンスを初期化します。 |
| Figure(Block) |
指定したFigure オブジェクトを新しいBlockの初期コンテンツとして受け取って、Figure クラスの新しいインスタンスを初期化します。 |
| Figure(Block, TextPointer) |
指定したFigure オブジェクトを新しいBlockの初期コンテンツとして受け取り、新しいFigure要素の挿入位置を指定TextPointer、Figure クラスの新しいインスタンスを初期化します。 |
Figure()
Figure(Block)
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)
パラメーター
例
次の例では、このコンストラクターの使用方法を示します。
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)
パラメーター
- 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)