AnchoredBlock(Block, TextPointer) 构造函数

定义

在派生类调用基类时初始化基类值,将指定的 Block 对象作为新后代 AnchoredBlock的初始内容,并为 TextPointerAnchoredBlock 后代指定插入位置。

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,在这种情况下,不会 Block 插入任何参数。

insertionPosition
TextPointer

TextPointer 个指定插入位置,在创建元素后插入元素,或者 null 不进行自动插入。

适用于