API Reference
ExcelCustomProperty
Represents a custom workbook property value.
Inheritance
- Object
- ExcelCustomProperty
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method ExcelCustomDocumentPropertyCollection.Add
- Method ExcelCustomDocumentPropertyCollection.Add
- Method ExcelCustomDocumentPropertyCollection.Contains
- Method ExcelCustomDocumentPropertyCollection.CopyTo
- Method ExcelCustomDocumentPropertyCollection.Remove
- Method ExcelCustomDocumentPropertyCollection.TryGetValue
- Method ExcelDocument.SetCustomDocumentProperty
Constructors
public ExcelCustomProperty() #Creates an empty custom property.
public ExcelCustomProperty(Object value, ExcelCustomPropertyType propertyType) #Creates a custom property with the specified value and type.
Parameters
- value System.Object
- propertyType OfficeIMO.Excel.ExcelCustomPropertyType
public ExcelCustomProperty(String value) #Creates a string custom property.
Parameters
- value System.String
public ExcelCustomProperty(Boolean value) #Creates a boolean custom property.
Parameters
- value System.Boolean
public ExcelCustomProperty(DateTime value) #Creates a date/time custom property.
Parameters
- value System.DateTime
public ExcelCustomProperty(Int32 value) #Creates an integer custom property.
Parameters
- value System.Int32
public ExcelCustomProperty(Double value) #Creates a floating point custom property.
Parameters
- value System.Double
public ExcelCustomProperty(Byte[] value) #Creates a binary custom property.
Parameters
- value System.Byte[]
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 ExcelCustomPropertyType PropertyType { get; set; } #Gets the custom property value type.
public Nullable<DateTime> Date { get; } #Gets the value as a date/time when the property type is a date.
public Nullable<Int32> NumberInteger { get; } #Gets the value as an integer when the property type is an integer.
public Nullable<Double> NumberDouble { get; } #Gets the value as a double when the property type is 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.
public Byte[] Binary { get; } #Gets the value as binary data when the property type is Binary.