Class CadMTextMask
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The background mask of an MTEXT, as AutoCAD 2021's Background Mask dialog sets it: whether the words stand on a filled box, how far the box reaches past them (the border offset factor, a multiple of the text height from 1 to 5, 1.5 by default), and its colour, the drawing's background colour or one of its own. An MTEXT 5 high with the mask on at the factor 1.5 stands on a box 2.5 past its words on every side. It is written as the flags of group 90 (1 the mask, 2 the drawing's background colour), 45 the factor and 63, 421 the colour.
public sealed class CadMTextMask : IEquatable<CadMTextMask>
- Inheritance
-
CadMTextMask
- Implements
- Inherited Members
Constructors
- CadMTextMask(bool, double, bool, DxfColor)
Makes a mask.
Fields
- DefaultOffsetFactor
The factor AutoCAD gives a mask the dialog has not set: 1.5.
Properties
- FillColor
Gets the colour of the mask; null where the MTEXT gives none (by layer).
- OffsetFactor
Gets how far the mask reaches past the words, a multiple of the text height.
- UseDrawingBackground
Gets whether the mask takes the drawing's background colour.
- UseMask
Gets whether the words stand on a mask.
Methods
- ApplyTo(DxfMText)
Gives an MTEXT this mask: the fill and the drawing's background colour switched as it says, the factor and, where the mask takes a colour of its own, the colour written; an MTEXT with the mask off is left with the record it has but for the two flags. What the MTEXT already has is not written again.
- Of(DxfMText)
Reads the mask an MTEXT has: none for one with no background fill.