Share via


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)

적용 대상