Table of Contents

Class CadMTextLook

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The look of a run of letters of an MTEXT, as its inline codes set it: the font and whether it is bold or italic, the lines under, over and through, the colour, the height, the slant, the spacing and the width of the letters, and how the run stands in its line. A value left null (or false) is the MTEXT's own, so that Plain is the look of words written with no code at all. A look is never changed: each With gives a new one.

public sealed class CadMTextLook : IEquatable<CadMTextLook>
Inheritance
CadMTextLook
Implements
Inherited Members

Properties

Align

Gets how the run stands in a line of taller letters (\A): 0 on the baseline, 1 at the middle, 2 at the top; null for the baseline.

Bold

Gets whether the letters are bold (|b1 of a TrueType font code).

Charset

Gets the character set of the font code (|c0); null where the code gave none.

ColorIndex

Gets the colour index of \C: 0 ByBlock, 256 ByLayer, 1 to 255 a colour of the index; null for the MTEXT's own.

Font

Gets the font a code switches to: a TrueType family (Arial) or an SHX file (romans); null for the MTEXT style's.

Height

Gets the height of the letters in drawing units (\H); null for the MTEXT's height.

IsPlain

Gets whether this is Plain in all but the font: what the MTEXT's own codes before its words may set without a run of their own.

IsShx

Gets whether Font is an SHX file (\F) rather than a TrueType family (\f).

Italic

Gets whether the letters are italic (|i1 of a TrueType font code).

Oblique

Gets the slant of the letters in degrees (\Q); null for the style's.

Overline

Gets whether the letters are overlined (\O to \o).

Pitch

Gets the pitch and family of the font code (|p34); null where the code gave none.

Plain

Gets the look of words with no code: everything the MTEXT's own.

Strikethrough

Gets whether the letters are struck through (\K to \k).

Tracking

Gets the spacing of the letters as a factor of their usual spacing (\T); null for 1.

TrueColor

Gets the true colour of \c as 0xRRGGBB; null for none.

Underline

Gets whether the letters are underlined (\L to \l).

WidthFactor

Gets the width factor of the letters (\W); null for the style's.

Methods

Equals(CadMTextLook)
Equals(object)
GetHashCode()
WithAlign(int?)

Gives the look standing in its line as \A says (0, 1, 2); null for the baseline.

WithColorIndex(int?)

Gives the look in a colour of the index (0 ByBlock, 256 ByLayer), any true colour dropped; null for the MTEXT's own.

WithHeight(double?)

Gives the look of a height in drawing units; null for the MTEXT's.

WithOblique(double?)

Gives the look of a slant in degrees; null for the style's.

WithOverline(bool)

Gives the look overlined or not.

WithShx(string)

Gives the look with an SHX font, which is neither bold nor italic.

WithStrikethrough(bool)

Gives the look struck through or not.

WithTracking(double?)

Gives the look of a spacing factor; null for 1.

WithTrueColor(int?)

Gives the look in a true colour, 0xRRGGBB, any colour index dropped; null for none.

WithTrueType(string, bool, bool)

Gives the look with a TrueType font, bold and italic as given, the character set and pitch kept.

WithUnderline(bool)

Gives the look underlined or not.

WithWidthFactor(double?)

Gives the look of a width factor; null for the style's.