Aracılığıyla paylaş


Figure Oluşturucular

Tanım

Figure sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

Figure()

sınıfının yeni, boş bir örneğini Figure başlatır.

Figure(Block)

Sınıfının yeni bir örneğini Figure başlatır ve belirtilen Block nesneyi yeni Figureöğesinin ilk içeriği olarak alır.

Figure(Block, TextPointer)

Sınıfın Figure yeni bir örneğini başlatır, belirtilen Block nesneyi yeni öğesinin ilk içeriği olarak alır ve TextPointer yeni FigureFigure öğe için ekleme konumunu belirtir.

Figure()

sınıfının yeni, boş bir örneğini Figure başlatır.

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

Şunlara uygulanır

Figure(Block)

Sınıfının yeni bir örneğini Figure başlatır ve belirtilen Block nesneyi yeni Figureöğesinin ilk içeriği olarak alır.

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)

Parametreler

childBlock
Block

Block Yeni Figureöğesinin ilk içeriğini belirten bir nesne.

Örnekler

Aşağıdaki örnekte bu oluşturucunun kullanımı gösterilmektedir.

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)

Şunlara uygulanır

Figure(Block, TextPointer)

Sınıfın Figure yeni bir örneğini başlatır, belirtilen Block nesneyi yeni öğesinin ilk içeriği olarak alır ve TextPointer yeni FigureFigure öğe için ekleme konumunu belirtir.

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)

Parametreler

childBlock
Block

Block Yeni Figureöğesinin ilk içeriğini belirten bir nesne. Bu parametre olabilir null, bu durumda eklenmez Block .

insertionPosition
TextPointer

Öğe TextPointer oluşturulduktan sonra ekleneceğini Figure veya null otomatik ekleme yapılmayacağını belirten bir ekleme konumu.

Örnekler

Aşağıdaki örnekte bu oluşturucunun kullanımı gösterilmektedir.

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)

Şunlara uygulanır