Skip to content
On this page

mxcad API 文档 / MdGeText

Class: MdGeText

表示文字

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeText(p1?, p2?, p3?)

Parameters

NameType
p1?string | object
p2?number
p3?MdGeCSYSR

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

HasOwnAnchorPoint

HasOwnAnchorPoint(): boolean

Returns

boolean


HasPlane

HasPlane(): boolean

Returns

boolean


Height

Height(): number

Returns

number


HorizontalAlignment

HorizontalAlignment(): MxHorizontalTextAlignment

Returns

MxHorizontalTextAlignment


Orientation

Orientation(): MdGeCSYSR

Returns

MdGeCSYSR


Position

Position(): MdGePoint

Returns

MdGePoint


ResetOrientation

ResetOrientation(): void

Returns

void


SetHeight

SetHeight(theHeight): void

Parameters

NameType
theHeightnumber

Returns

void


SetHorizontalAlignment

SetHorizontalAlignment(theJustification): void

Parameters

NameType
theJustificationMxHorizontalTextAlignment

Returns

void


SetOrientation

SetOrientation(theOrientation): void

Parameters

NameType
theOrientationMdGeCSYSR

Returns

void


SetOwnAnchorPoint

SetOwnAnchorPoint(theHasOwnAnchor): void

Parameters

NameType
theHasOwnAnchorboolean

Returns

void


SetPosition

SetPosition(thePoint): void

Parameters

NameType
thePointMdGePoint

Returns

void


SetText

SetText(theText): void

Parameters

NameType
theTextstring

Returns

void


SetVerticalAlignment

SetVerticalAlignment(theJustification): void

Parameters

NameType
theJustificationMxVerticalTextAlignment

Returns

void


Shape

Shape(): MdGeShape

Returns

MdGeShape


VerticalAlignment

VerticalAlignment(): MxVerticalTextAlignment

Returns

MxVerticalTextAlignment


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject