Figure 생성자

정의

Figure 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
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

BlockFigure콘텐츠의 초기 내용을 지정하는 개체입니다.

예제

다음 예제에서는이 생성자의 사용을 보여 줍니다.

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

BlockFigure콘텐츠의 초기 내용을 지정하는 개체입니다. 이 매개 변수는 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)

적용 대상