Constructor DisplayText2
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
DisplayText2(string, double, double, double, double, double, int, int, DisplayStyle, string, string, string, double)
Makes a piece of text.
public DisplayText2(string text, double x, double y, double height, double rotation, double widthFactor, int horizontal, int vertical, DisplayStyle style, string handle, string layer, string fontName, double oblique)
Parameters
textstringThe text, one or more lines separated by line feeds, with the format codes of an MTEXT already taken out.
xdoubleThe X of the alignment point.
ydoubleThe Y of the alignment point.
heightdoubleThe height of a capital letter.
rotationdoubleThe angle of the baseline in radians.
widthFactordoubleThe width of a letter relative to its height's usual width; 1 is the font's own.
horizontalintWhere the point lies along the text: 0 left, 1 centre, 2 right.
verticalintWhere the point lies up the text: 0 baseline, 1 bottom, 2 middle, 3 top.
styleDisplayStyleHow it is drawn.
handlestringThe handle of the entity.
layerstringThe layer.
fontNamestringThe font of its text style: the typeface a TrueType style names (Arial), else the file of its font (romans.shx, arial.ttf); null or empty for the canvas's own.
obliquedoubleHow far the letters lean, in radians clockwise from upright: 0.2618 for the 15 degrees of an italic look.
DisplayText2(string, double, double, double, double, double, int, int, DisplayStyle, string, string, string, double, bool)
Makes a piece of text that may be drawn backwards, as text in a mirrored block is.
public DisplayText2(string text, double x, double y, double height, double rotation, double widthFactor, int horizontal, int vertical, DisplayStyle style, string handle, string layer, string fontName, double oblique, bool backward)
Parameters
textstringThe text, one or more lines separated by line feeds.
xdoubleThe X of the alignment point.
ydoubleThe Y of the alignment point.
heightdoubleThe height of a capital letter.
rotationdoubleThe angle of the baseline in radians.
widthFactordoubleThe width of a letter relative to its height's usual width; 1 is the font's own.
horizontalintWhere the point lies along the text: 0 left, 1 centre, 2 right.
verticalintWhere the point lies up the text: 0 baseline, 1 bottom, 2 middle, 3 top.
styleDisplayStyleHow it is drawn.
handlestringThe handle of the entity.
layerstringThe layer.
fontNamestringThe font of its text style; null or empty for the canvas's own.
obliquedoubleHow far the letters lean, in radians clockwise from upright.
backwardboolWhether it is drawn backwards: see IsBackward.