Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeFormatDescriptor

Namespace OfficeIMO
Assembly OfficeIMO.Core
Implements
IEquatable<OfficeFormatDescriptor>
Modifiers sealed

Describes one concrete Office file format and document kind.

Inheritance

  • Object
  • OfficeFormatDescriptor

Usage

Explore 5 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.

Accepted by parameters 3

Constructors

public OfficeFormatDescriptor(String id, String extension, OfficeDocumentFamily family, OfficeDocumentKind documentKind, OfficeFormatGeneration generation, OfficeFormatEncoding encoding, Boolean macroEnabled) #

Creates a format descriptor.

Parameters

id System.String requiredposition: 0
extension System.String requiredposition: 1
family OfficeIMO.OfficeDocumentFamily requiredposition: 2
documentKind OfficeIMO.OfficeDocumentKind requiredposition: 3
generation OfficeIMO.OfficeFormatGeneration requiredposition: 4
encoding OfficeIMO.OfficeFormatEncoding requiredposition: 5
macroEnabled System.Boolean requiredposition: 6

Methods

Equals 2 overloads
public Boolean Equals(OfficeFormatDescriptor? other) #
Returns: Boolean

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.OfficeFormatDescriptor? requiredposition: 0
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

public override Boolean Equals(Object? obj) #
Returns: Boolean

Determines whether the specified object is equal to the current object.

Parameters

obj System.Object? requiredposition: 0
The object to compare with the current object.

Returns

true if the specified object is equal to the current object; otherwise, false.

public override Int32 GetHashCode() #
Returns: Int32

Serves as the default hash function.

Returns

A hash code for the current object.

public override String ToString() #
Returns: String

Returns a string that represents the current object.

Returns

A string that represents the current object.

Properties

public String Id { get; } #

Gets the stable format identifier, such as Word.Docx.

public String Extension { get; } #

Gets the normalized lower-case extension including its leading period.

public OfficeDocumentFamily Family { get; } #

Gets the owning Office document family.

public OfficeDocumentKind DocumentKind { get; } #

Gets the logical document kind.

public OfficeFormatGeneration Generation { get; } #

Gets the format generation.

public OfficeFormatEncoding Encoding { get; } #

Gets the physical encoding.

public Boolean IsMacroEnabled { get; } #

Gets whether the format can carry VBA projects.