語言

AnchoredBlock(Block, TextPointer) 建構函式

定義

當衍生類別呼叫時,初始化基底類別值,取指定 Block 物件作為新後代 AnchoredBlock的初始內容,並 TextPointer 指定新後代的插入位置 AnchoredBlock 。

protected:
 AnchoredBlock(System::Windows::Documents::Block ^ block, System::Windows::Documents::TextPointer ^ insertionPosition);
protected AnchoredBlock(System.Windows.Documents.Block block, System.Windows.Documents.TextPointer insertionPosition);
new System.Windows.Documents.AnchoredBlock : System.Windows.Documents.Block * System.Windows.Documents.TextPointer -> System.Windows.Documents.AnchoredBlock
Protected Sub New (block As Block, insertionPosition As TextPointer)

參數

block
Block

一個 Block 指定新元素初始內容的物件。 此參數可為 null,此時插入 no Block 。

insertionPosition
TextPointer

TextPointer A 指定元件建立後插入的位置,或null不自動插入。

適用於