Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelCustomProperty

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

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.

Constructors

ExcelCustomProperty 8 overloads
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 object? required
propertyType OfficeIMO.Excel.ExcelCustomPropertyType required
public ExcelCustomProperty(string value) #

Creates a string custom property.

Parameters

value string required
public ExcelCustomProperty(bool value) #

Creates a boolean custom property.

Parameters

value bool required
public ExcelCustomProperty(DateTime value) #

Creates a date/time custom property.

Parameters

value System.DateTime required
public ExcelCustomProperty(int value) #

Creates an integer custom property.

Parameters

value int required
public ExcelCustomProperty(double value) #

Creates a floating point custom property.

Parameters

value double required
public ExcelCustomProperty(byte[] value) #

Creates a binary custom property.

Parameters

value byte[] required

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.