THPDFContentOperatorView
提供当前 AST 操作的借用只读视图
声明
function GetOperationBytes(out Bytes: TBytes): boolean;
function GetOperandNode(OperandIndex: Integer;
out Node: THPDFContentSyntaxNode): boolean;
function GetOperandBytes(OperandIndex: Integer;
out Bytes: TBytes): boolean;
参数
OperandIndex是从零开始的操作数索引Nodereceives immutable source spans and syntax relationshipsBytes只接收所请求的操作或操作数范围
返回值
所请求的范围存在时为 True,否则为 False
使用说明
- 该视图仅在其回调期间有效
- Byte getters copy only the selected source span
- 该视图不提供编辑方法,因此变换必须使用回调的 action 和 replacement 字段