Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

OfficeFontInfo

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base ValueType
Implements
IEquatable<OfficeFontInfo>
Modifiers sealed

Small immutable font descriptor used by OfficeIMO packages without taking a dependency on a font engine.

Inheritance

  • ValueType
  • OfficeFontInfo

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public OfficeFontInfo(String familyName, Double size = 11, OfficeFontStyle style = Regular) #

Creates a font descriptor.

Parameters

familyName System.String requiredposition: 0
size System.Double = 11 optionalposition: 1
style OfficeIMO.Drawing.OfficeFontStyle = Regular optionalposition: 2

Methods

Equals 2 overloads
public virtual Boolean Equals(OfficeFontInfo other) #
Returns: Boolean

Parameters

other OfficeIMO.Drawing.OfficeFontInfo requiredposition: 0
public override Boolean Equals(Object obj) #
Returns: Boolean

Parameters

obj System.Object requiredposition: 0
public override Int32 GetHashCode() #
Returns: Int32
public static Boolean op_Equality(OfficeFontInfo left, OfficeFontInfo right) #
Returns: Boolean

Equality operator.

Parameters

left OfficeIMO.Drawing.OfficeFontInfo requiredposition: 0
right OfficeIMO.Drawing.OfficeFontInfo requiredposition: 1
public static Boolean op_Inequality(OfficeFontInfo left, OfficeFontInfo right) #
Returns: Boolean

Inequality operator.

Parameters

left OfficeIMO.Drawing.OfficeFontInfo requiredposition: 0
right OfficeIMO.Drawing.OfficeFontInfo requiredposition: 1
public override String ToString() #
Returns: String
public OfficeFontInfo WithFamilyName(String familyName) #
Returns: OfficeFontInfo

Creates a copy with a different family name.

Parameters

familyName System.String requiredposition: 0
public OfficeFontInfo WithSize(Double size) #
Returns: OfficeFontInfo

Creates a copy with a different point size.

Parameters

size System.Double requiredposition: 0
public OfficeFontInfo WithStyle(OfficeFontStyle style) #
Returns: OfficeFontInfo

Creates a copy with different style flags.

Parameters

style OfficeIMO.Drawing.OfficeFontStyle requiredposition: 0

Properties

public String FamilyName { get; } #

Font family name, when known.

public Double Size { get; } #

Font size in points.

public OfficeFontStyle Style { get; } #

Font style flags.

public Boolean IsBold { get; } #

Whether the descriptor includes bold styling.

public Boolean IsItalic { get; } #

Whether the descriptor includes italic styling.

public Boolean IsUnderline { get; } #

Whether the descriptor includes underline styling.

public Boolean IsStrikethrough { get; } #

Whether the descriptor includes strikethrough styling.

public static OfficeFontInfo Default { get; } #

Default Office font descriptor.