Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeFontFaceDescriptor

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Implements
IEquatable<OfficeFontFaceDescriptor>
Modifiers
sealed

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

Inheritance

  • ValueType
  • OfficeFontFaceDescriptor

Usage

Explore 17 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 12

Constructors

public OfficeFontFaceDescriptor(int weight = 400, double stretchPercent = 100, OfficeFontSlant slant = Normal, double obliqueAngleDegrees = 14) #

Creates a face descriptor.

Parameters

weight int = 400 optional
Numeric font weight from 1 through 1000.
stretchPercent double = 100 optional
Face width as a percentage of normal width.
slant OfficeIMO.Drawing.OfficeFontSlant = Normal optional
Normal, italic, or oblique face classification.
obliqueAngleDegrees double = 14 optional
Oblique angle in degrees when slant is oblique.

Methods

Equals 2 overloads
public bool Equals(OfficeFontFaceDescriptor other) #

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

Parameters

other OfficeIMO.Drawing.OfficeFontFaceDescriptor required
An object to compare with this object.

Returns

bool true if the current object is equal to the other parameter; otherwise, false.
public override bool Equals(object? obj) #

Indicates whether this instance and a specified object are equal.

Parameters

obj object? required
The object to compare with the current instance.

Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.
public static OfficeFontFaceDescriptor FromStyle(OfficeFontStyle style) #

Creates a descriptor matching the legacy bold/italic flags.

Parameters

style OfficeIMO.Drawing.OfficeFontStyle required
public override int GetHashCode() #

Returns the hash code for this instance.

Returns

int A 32-bit signed integer that is the hash code for this instance.
public static bool op_Equality(OfficeFontFaceDescriptor left, OfficeFontFaceDescriptor right) #

Equality operator.

Parameters

left OfficeIMO.Drawing.OfficeFontFaceDescriptor required
right OfficeIMO.Drawing.OfficeFontFaceDescriptor required

Returns

bool
public static bool op_Inequality(OfficeFontFaceDescriptor left, OfficeFontFaceDescriptor right) #

Inequality operator.

Parameters

left OfficeIMO.Drawing.OfficeFontFaceDescriptor required
right OfficeIMO.Drawing.OfficeFontFaceDescriptor required

Returns

bool
public OfficeFontStyle ToStyle() #

Compatibility style flags inferred from the numeric face attributes.

Properties

public int 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.