다음을 통해 공유


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)

적용 대상