API Reference
Struct
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.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 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
Methods
Equals 2 overloads
public override Int32 GetHashCode() #Returns:
Int32public static Boolean op_Equality(OfficeFontInfo left, OfficeFontInfo right) #Returns:
BooleanEquality operator.
Parameters
- left OfficeIMO.Drawing.OfficeFontInfo
- right OfficeIMO.Drawing.OfficeFontInfo
public static Boolean op_Inequality(OfficeFontInfo left, OfficeFontInfo right) #Returns:
BooleanInequality operator.
Parameters
- left OfficeIMO.Drawing.OfficeFontInfo
- right OfficeIMO.Drawing.OfficeFontInfo
public OfficeFontInfo WithFamilyName(String familyName) #Returns:
OfficeFontInfoCreates a copy with a different family name.
Parameters
- familyName System.String
public OfficeFontInfo WithSize(Double size) #Returns:
OfficeFontInfoCreates a copy with a different point size.
Parameters
- size System.Double
public OfficeFontInfo WithStyle(OfficeFontStyle style) #Returns:
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 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.