Word.Interfaces.CustomPropertyData interface
An interface describing the data returned by calling customProperty.toJSON()
.
Properties
key | Gets the key of the custom property. |
type | Gets the value type of the custom property. Possible values are: String, Number, Date, Boolean. |
value | Specifies the value of the custom property. Note that even though Word on the web and the docx file format allow these properties to be arbitrarily long, the desktop version of Word will truncate string values to 255 16-bit chars (possibly creating invalid unicode by breaking up a surrogate pair). |
Property Details
key
Gets the key of the custom property.
key?: string;
Property Value
string
Remarks
type
Gets the value type of the custom property. Possible values are: String, Number, Date, Boolean.
type?: Word.DocumentPropertyType | "String" | "Number" | "Date" | "Boolean";
Property Value
Word.DocumentPropertyType | "String" | "Number" | "Date" | "Boolean"
Remarks
value
Specifies the value of the custom property. Note that even though Word on the web and the docx file format allow these properties to be arbitrarily long, the desktop version of Word will truncate string values to 255 16-bit chars (possibly creating invalid unicode by breaking up a surrogate pair).
value?: any;
Property Value
any
Remarks
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de