• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DrawingFont

Represents font settings for drawing text objects.

Inheritance
object
DrawingFont
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class DrawingFont

Constructors

DrawingFont()

Initializes a new instance of the DrawingFont class with default settings.

Declaration
public DrawingFont()

Properties

Bold

Indicates whether the font is bold.

Declaration
public bool Bold { get; set; }
Property Value
Type Description
bool

Color

Specifies the font color as a System.Drawing.Color.

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color

DrawingColor

Specifies the font color as a DrawingColor.

Declaration
public DrawingColor DrawingColor { get; set; }
Property Value
Type Description
DrawingColor

Italic

Indicates whether the font is italic.

Declaration
public bool Italic { get; set; }
Property Value
Type Description
bool

Name

Specifies the font name.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

Size

Specifies the font size.

Declaration
public double Size { get; set; }
Property Value
Type Description
double

Strikethrough

Indicates whether the font has strikethrough.

Declaration
public bool Strikethrough { get; set; }
Property Value
Type Description
bool

Underline

Specifies the underline type for the font.

Declaration
public UnderlineType Underline { get; set; }
Property Value
Type Description
UnderlineType

Methods

Equals(DrawingFont)

Determines whether the specified DrawingFont is equal to this font.

Declaration
protected bool Equals(DrawingFont other)
Parameters
Type Name Description
DrawingFont other

The font to compare.

Returns
Type Description
bool

True if the fonts are equal; otherwise, false.

Equals(object)

Exposes the equals associated with DrawingFont.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The obj used by the operation.

Returns
Type Description
bool

The equals returned by the operation.

Overrides
object.Equals(object)

GetHashCode()

Retrieves the requested hash code from the DrawingFont.

Declaration
public override int GetHashCode()
Returns
Type Description
int

The get hash code returned by the operation.

Overrides
object.GetHashCode()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX