SetMarkedContentTextProperty

內容串流編輯

描述

在標記內容指令的 BDC 屬性清單上設定 Unicode 文字屬性,並為屬性字典編碼該值

語法

Delphi

Function TPDFContentProgram.SetMarkedContentTextProperty(InstructionIndex: Integer; Const PropertyName: AnsiString; Const PropertyValue: WideString): Boolean;

參數

InstructionIndex標記內容指令的索引
PropertyName要在 BDC 屬性清單中設定的屬性名稱
PropertyValue屬性的 Unicode 文字值,為屬性字典完成編碼

傳回值

屬性設定成功時傳回 True,否則傳回 False

備註

若值本身已是合法的內容串流原始碼,請用 SetMarkedContentPropertySource;要參照具名的 /Properties 資源則用 SetMarkedContentPropertyResource;移除屬性請用 DeleteMarkedContentProperty 或 ClearMarkedContentProperties

另請參閱

TPDFContentProgram, SetMarkedContentPropertySource, SetMarkedContentPropertyResource, DeleteMarkedContentProperty, ClearMarkedContentProperties