Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

OfficeFontFaceDescriptor

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

CSS-compatible face attributes used when selecting among registered font faces.

Inheritance

  • ValueType
  • OfficeFontFaceDescriptor

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 OfficeFontFaceDescriptor(Int32 weight = 400, Double stretchPercent = 100, OfficeFontSlant slant = Normal, Double obliqueAngleDegrees = 14) #

Creates a face descriptor.

Parameters

weight System.Int32 = 400 optionalposition: 0
Numeric font weight from 1 through 1000.
stretchPercent System.Double = 100 optionalposition: 1
Face width as a percentage of normal width.
slant OfficeIMO.Drawing.OfficeFontSlant = Normal optionalposition: 2
Normal, italic, or oblique face classification.
obliqueAngleDegrees System.Double = 14 optionalposition: 3
Oblique angle in degrees when slant is oblique.

Methods

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

Parameters

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

Parameters

obj System.Object requiredposition: 0
public static OfficeFontFaceDescriptor FromStyle(OfficeFontStyle style) #
Returns: OfficeFontFaceDescriptor

Creates a descriptor matching the legacy bold/italic flags.

Parameters

style OfficeIMO.Drawing.OfficeFontStyle requiredposition: 0
public override Int32 GetHashCode() #
Returns: Int32
public static Boolean op_Equality(OfficeFontFaceDescriptor left, OfficeFontFaceDescriptor right) #
Returns: Boolean

Equality operator.

Parameters

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

Inequality operator.

Parameters

left OfficeIMO.Drawing.OfficeFontFaceDescriptor requiredposition: 0
right OfficeIMO.Drawing.OfficeFontFaceDescriptor requiredposition: 1
public OfficeFontStyle ToStyle() #
Returns: OfficeFontStyle

Compatibility style flags inferred from the numeric face attributes.

Properties

public Int32 Weight { get; } #

Numeric face weight from 1 through 1000.

public Double StretchPercent { get; } #

Face width as a percentage of normal width.

public OfficeFontSlant Slant { get; } #

Normal, italic, or oblique face classification.

public Double ObliqueAngleDegrees { get; } #

Oblique face angle in degrees, or zero for normal and italic faces.

public static OfficeFontFaceDescriptor Regular { get; } #

Regular 400-weight, normal-width, upright face.