Floater コンストラクター

定義

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

オーバーロード

Floater()

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

Floater(Block)

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

Floater(Block, TextPointer)

指定した Floater オブジェクトを初期コンテンツとし、新しい Block の挿入位置を指定する TextPointer を使用して、Floater クラスの新しいインスタンスを初期化します。

Floater()

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

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

適用対象

Floater(Block)

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

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

パラメーター

childBlock
Block

新しい Floater の初期コンテンツ。

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

Paragraph parx = new Paragraph(new Run("Floater content..."));
Floater flotx = new Floater(parx);
Dim parx3 As New Paragraph(New Run("Floater content..."))
Dim flotx3 As New Floater(parx3)

適用対象

Floater(Block, TextPointer)

指定した Floater オブジェクトを初期コンテンツとし、新しい Block の挿入位置を指定する TextPointer を使用して、Floater クラスの新しいインスタンスを初期化します。

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

パラメーター

childBlock
Block

新しい Floater の初期コンテンツ。 このパラメーターは、null でもかまいません。その場合、Block は挿入されません。

insertionPosition
TextPointer

作成された Floater 要素を挿入する位置。

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

Span spanx = new Span();
Paragraph parx = new Paragraph(new Run("Floater content..."));

// This will populate the Floater with the Paragraph parx, and insert
// the Floater at the beginning of the Span spanx.
Floater flotx = new Floater(parx, spanx.ContentStart);
Dim spanx4 As New Span()
Dim parx4 As New Paragraph(New Run("Floater content..."))

    ' This will populate the Floater with the Paragraph parx, and insert
    ' the Floater at the beginning of the Span spanx.
Dim flotx4 As New Floater(parx4, spanx4.ContentStart)

適用対象