ExcelCustomProperty
OfficeIMO.Excel
Represents a custom workbook property value.
Inheritance
- object
- ExcelCustomProperty
Usage
Explore 11 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
Accepted by parameters 7
- Method ExcelCustomDocumentPropertyCollection.Add
- Method ExcelCustomDocumentPropertyCollection.Add
- Method ExcelCustomDocumentPropertyCollection.Contains
- Method ExcelCustomDocumentPropertyCollection.CopyTo
- Method ExcelCustomDocumentPropertyCollection.Remove
- Method ExcelCustomDocumentPropertyCollection.TryGetValue
- Method ExcelDocument.SetCustomDocumentProperty
Constructors
public ExcelCustomProperty(object? value, ExcelCustomPropertyType propertyType) #Creates a custom property with the specified value and type.
Parameters
- value object?
- propertyType OfficeIMO.Excel.ExcelCustomPropertyType
public ExcelCustomProperty(DateTime value) #Creates a date/time custom property.
Parameters
- value System.DateTime
public ExcelCustomProperty(double value) #Creates a floating point custom property.
Parameters
- value double
Inherited Methods
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 DateTime? Date { get; } #Gets the value as a date/time when the property type is a date.
public int? NumberInteger { get; } #Gets the value as an integer when the property type is an integer.
public double? NumberDouble { get; } #Gets a floating point value as a double. For decimal variants, ExcelCustomProperty.Value retains the exact decimal.
public string? Text { get; } #Gets the value as text when the property type is textual.
public bool? 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.