API Reference
OfficeFontInfo
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.
Returned or exposed by
- Property OfficeDrawingText.Font
- Method OfficeFontInfo.WithFace
- Method OfficeFontInfo.WithFamilyName
- Method OfficeFontInfo.WithSize
- Method OfficeFontInfo.WithStyle
- Property OfficeFontInfo.Default
- Property OfficeMathRenderOptions.Font
- Property OfficeTextMeasurementStyle.FontInfo
- Property OfficeTextMeasurer.FallbackFontInfo
Accepted by parameters
- Method OfficeDrawing.AddClippedPositionedText
- Method OfficeDrawing.AddClippedPositionedText
- Method OfficeDrawing.AddClippedText
- Method OfficeDrawing.AddPositionedText
- Method OfficeDrawing.AddPositionedText
- Method OfficeDrawing.AddPositionedText
- Method OfficeDrawing.AddPositionedText
- Method OfficeDrawing.AddPositionedText
- Method OfficeDrawing.AddStyledText
- Method OfficeDrawing.AddStyledText
- Method OfficeDrawing.AddText
- Method OfficeDrawing.AddText
- Method OfficeDrawing.AddTextBehindContent
- Method OfficeDrawing.AddVerticalText
- Constructor OfficeDrawingText.OfficeDrawingText
- Constructor OfficeDrawingText.OfficeDrawingText
- Constructor OfficeDrawingText.OfficeDrawingText
- Method OfficeFontInfo.Equals
- Method OfficeFontInfo.op_Equality
- Method OfficeFontInfo.op_Equality
- Method OfficeFontInfo.op_Inequality
- Method OfficeFontInfo.op_Inequality
- Method OfficeRasterCanvas.DrawText
- Method OfficeRasterCanvas.MeasureText
- Method OfficeTextMeasurer.Create
- Method OfficeTextMeasurer.CreateStyle
- Method OfficeTextMeasurer.CreateStyle
Constructors
public OfficeFontInfo(String familyName, Double size = 11, OfficeFontStyle style = Regular) #Creates a font descriptor.
Parameters
- familyName System.String
- size System.Double = 11
- style OfficeIMO.Drawing.OfficeFontStyle = Regular
public OfficeFontInfo(String familyName, Double size, OfficeFontFaceDescriptor face, OfficeFontStyle decorations = Regular) #Creates a font with exact numeric face attributes and optional text decorations.
Parameters
- familyName System.String
- size System.Double
- face OfficeIMO.Drawing.OfficeFontFaceDescriptor
- decorations OfficeIMO.Drawing.OfficeFontStyle = Regular
Methods
public Boolean Equals(OfficeFontInfo other) #BooleanIndicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Drawing.OfficeFontInfo
- 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) #BooleanIndicates whether this instance and a specified object are equal.
Parameters
- obj System.Object
- The object to compare with the current instance.
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false.
public override Int32 GetHashCode() #Int32Returns the hash code for this instance.
Returns
A 32-bit signed integer that is the hash code for this instance.
public static Boolean op_Equality(OfficeFontInfo left, OfficeFontInfo right) #BooleanEquality operator.
Parameters
- left OfficeIMO.Drawing.OfficeFontInfo
- right OfficeIMO.Drawing.OfficeFontInfo
public static Boolean op_Inequality(OfficeFontInfo left, OfficeFontInfo right) #BooleanInequality operator.
Parameters
- left OfficeIMO.Drawing.OfficeFontInfo
- right OfficeIMO.Drawing.OfficeFontInfo
public override String ToString() #StringReturns the fully qualified type name of this instance.
Returns
The fully qualified type name.
public OfficeFontInfo WithFace(OfficeFontFaceDescriptor face) #OfficeFontInfoCreates a copy with exact face attributes, retaining text decorations.
Parameters
- face OfficeIMO.Drawing.OfficeFontFaceDescriptor
public OfficeFontInfo WithFamilyName(String familyName) #OfficeFontInfoCreates a copy with a different family name.
Parameters
- familyName System.String
public OfficeFontInfo WithSize(Double size) #OfficeFontInfoCreates a copy with a different point size.
Parameters
- size System.Double
public OfficeFontInfo WithStyle(OfficeFontStyle style) #OfficeFontInfoCreates a copy with different style flags.
Parameters
- style OfficeIMO.Drawing.OfficeFontStyle
Inherited Methods
Properties
public String FamilyName { get; } #Font family name, when known.
public OfficeFontStyle Style { get; } #Font style flags.
public OfficeFontFaceDescriptor Face { get; } #Numeric weight, width, and slant used consistently for measurement, painting, and export.
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.