OfficeIMO

API Reference

Class

WordCustomProperty

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Represents a custom property value stored in a Word document.

Inheritance

  • Object
  • WordCustomProperty

Constructors

WordCustomProperty 7 overloads
public WordCustomProperty(Object value, PropertyTypes propertyType) #

Creates a custom property with the specified value and type.

Parameters

value System.Object requiredposition: 0
Property value.
propertyType OfficeIMO.Word.PropertyTypes requiredposition: 1
Type of the property.
public WordCustomProperty(Boolean value) #

Creates a boolean custom property.

Parameters

value System.Boolean requiredposition: 0
Boolean value.
public WordCustomProperty(DateTime value) #

Creates a date/time custom property.

Parameters

value System.DateTime requiredposition: 0
Date/time value.
public WordCustomProperty(String value) #

Creates a string custom property.

Parameters

value System.String requiredposition: 0
Text value.
public WordCustomProperty(Double value) #

Creates a double custom property.

Parameters

value System.Double requiredposition: 0
Numeric value.
public WordCustomProperty(Int32 value) #

Creates an integer custom property.

Parameters

value System.Int32 requiredposition: 0
Integer value.
public WordCustomProperty() #

Creates an empty custom property.

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.