API Reference
WordCustomProperty
Represents a custom property value stored in a Word document.
Inheritance
- Object
- WordCustomProperty
Constructors
public WordCustomProperty(Object value, PropertyTypes propertyType) #Creates a custom property with the specified value and type.
Parameters
- value System.Object
- Property value.
- propertyType OfficeIMO.Word.PropertyTypes
- Type of the property.
public WordCustomProperty(Boolean value) #Creates a boolean custom property.
Parameters
- value System.Boolean
- Boolean value.
public WordCustomProperty(DateTime value) #Creates a date/time custom property.
Parameters
- value System.DateTime
- Date/time value.
public WordCustomProperty(String value) #Creates a string custom property.
Parameters
- value System.String
- Text value.
public WordCustomProperty(Double value) #Creates a double custom property.
Parameters
- value System.Double
- Numeric value.
public WordCustomProperty(Int32 value) #Creates an integer custom property.
Parameters
- value System.Int32
- Integer value.
public WordCustomProperty() #Creates an empty custom property.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Object Value { get; set; } #Gets or sets the raw value of the custom property.
public Nullable<DateTime> Date { get; } #Gets the value as a DateTime when the property type is a date.
public Nullable<Int32> NumberInteger { get; } #Gets the value as an Int32 when the property type represents an integer.
public Nullable<Double> NumberDouble { get; } #Gets the value as a Double when the property type represents a floating point number.
public String Text { get; } #Gets the value as text when the property type is textual.
public Nullable<Boolean> Bool { get; } #Gets the value as a boolean when the property type is YesNo.
Fields
public PropertyTypes PropertyType #Gets or sets the kind of custom property.