---
title: Class: DbMLeader
source: https://vjmap.com/doc/Class_DbMLeader.html
---

# Class: DbMLeader

[default](#modulesdefaultmd).DbMLeader

`DbMLeader` 多重引线.

### Hierarchy

- [*DbEntity*](#classesdefaultdbentitymd)

  ↳ **DbMLeader**

### Table of contents

#### Constructors

- [constructor](#constructor)

#### Properties

- [alpha](#alpha)
- [arrowSize](#arrowsize)
- [blockConnectionType](#blockconnectiontype)
- [blockPosition](#blockposition)
- [blockRotation](#blockrotation)
- [blockScale](#blockscale)
- [cloneFromDb](#clonefromdb)
- [cloneObjectId](#cloneobjectid)
- [color](#color)
- [colorIndex](#colorindex)
- [contents](#contents)
- [doglegLength](#dogleglength)
- [enableDogleg](#enabledogleg)
- [height](#height)
- [landingGap](#landinggap)
- [layer](#layer)
- [leaderLinePoint](#leaderlinepoint)
- [leaderVertexPoints](#leadervertexpoints)
- [lineWidth](#linewidth)
- [linetype](#linetype)
- [linetypeScale](#linetypescale)
- [matrix](#matrix)
- [textAttachment](#textattachment)
- [textAttachmentDirection](#textattachmentdirection)
- [textAttachmentType](#textattachmenttype)
- [textHeight](#textheight)
- [textLocation](#textlocation)
- [textRotation](#textrotation)
- [textStyle](#textstyle)
- [textWidth](#textwidth)
- [typename](#typename)
- [visibility](#visibility)
- [xdata](#xdata)

### Constructors

#### constructor

\+ **new DbMLeader**(`prop?`: [*IDbMText*](#interfacesdefaultidbmtextmd)): [*DbMLeader*](#classesdefaultdbmleadermd)

构造函数

##### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `prop` | [*IDbMText*](#interfacesdefaultidbmtextmd) | {} |

**Returns:** [*DbMLeader*](#classesdefaultdbmleadermd)

Overrides: [DbEntity](#classesdefaultdbentitymd)

### Properties

#### alpha

• `Optional` **alpha**: *number*

透明度. [0-255][0完全透明,255完全不透明]

Inherited from: [DbEntity](#classesdefaultdbentitymd).[alpha](#alpha)

___

#### arrowSize

• `Optional` **arrowSize**: *number*

___

#### blockConnectionType

• `Optional` **blockConnectionType**: ``0`` \| ``1``

___

#### blockPosition

• `Optional` **blockPosition**: [*number*, *number*, *undefined* \| *number*]

___

#### blockRotation

• `Optional` **blockRotation**: *number*

___

#### blockScale

• `Optional` **blockScale**: [*number*, *number*, *number*]

___

#### cloneFromDb

• `Optional` **cloneFromDb**: *string*

克隆的实体ID来源的图形，如为空，则取DbDocument中from的图形。也可以指定另外的图形

Inherited from: [DbEntity](#classesdefaultdbentitymd).[cloneFromDb](#clonefromdb)

___

#### cloneObjectId

• `Optional` **cloneObjectId**: *string*

克隆的实体ID，DbDocument有from图形来源字段时有效.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[cloneObjectId](#cloneobjectid)

___

#### color

• `Optional` **color**: *number*

颜色.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[color](#color)

___

#### colorIndex

• `Optional` **colorIndex**: *number*

颜色索引. 0 随块. 1 Red.  2 Yellow. 3   Green.  4 Cyan.  5  Blue. 6   Magenta. 256 表示随层

Inherited from: [DbEntity](#classesdefaultdbentitymd).[colorIndex](#colorindex)

___

#### contents

• `Optional` **contents**: *string*

文本内容.

___

#### doglegLength

• `Optional` **doglegLength**: *number*

___

#### enableDogleg

• `Optional` **enableDogleg**: *boolean*

___

#### height

• `Optional` **height**: *number*

文本高.

___

#### landingGap

• `Optional` **landingGap**: *number*

___

#### layer

• `Optional` **layer**: *string*

图层.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[layer](#layer)

___

#### leaderLinePoint

• `Optional` **leaderLinePoint**: [*number*, *number*, *undefined* \| *number*]

引线位置.

___

#### leaderVertexPoints

• `Optional` **leaderVertexPoints**: [*number*, *number*, *undefined* \| *number*][]

引线顶点位置数组.

___

#### lineWidth

• `Optional` **lineWidth**: *number*

线宽.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[lineWidth](#linewidth)

___

#### linetype

• `Optional` **linetype**: *string*

线型.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[linetype](#linetype)

___

#### linetypeScale

• `Optional` **linetypeScale**: *number*

线型比例.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[linetypeScale](#linetypescale)

___

#### matrix

• `Optional` **matrix**: [*IDbMatrixOp*](#interfacesdefaultidbmatrixopmd)[]

矩阵.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[matrix](#matrix)

___

#### textAttachment

• `Optional` **textAttachment**: [*kTopLeft*](#ktopleft) \| [*kTopCenter*](#ktopcenter) \| [*kTopRight*](#ktopright) \| [*kMiddleLeft*](#kmiddleleft) \| [*kMiddleCenter*](#kmiddlecenter) \| [*kMiddleRight*](#kmiddleright) \| [*kBottomLeft*](#kbottomleft) \| [*kBottomCenter*](#kbottomcenter) \| [*kBottomRight*](#kbottomright) \| [*kBaseLeft*](#kbaseleft) \| [*kBaseCenter*](#kbasecenter) \| [*kBaseRight*](#kbaseright) \| [*kBaseAlign*](#kbasealign) \| [*kBottomAlign*](#kbottomalign) \| [*kMiddleAlign*](#kmiddlealign) \| [*kTopAlign*](#ktopalign) \| [*kBaseFit*](#kbasefit) \| [*kBottomFit*](#kbottomfit) \| [*kMiddleFit*](#kmiddlefit) \| [*kTopFit*](#ktopfit) \| [*kBaseMid*](#kbasemid) \| [*kBottomMid*](#kbottommid) \| [*kMiddleMid*](#kmiddlemid) \| [*kTopMid*](#ktopmid)

文本对齐方式.

___

#### textAttachmentDirection

• `Optional` **textAttachmentDirection**: ``0`` \| ``1``

文本对齐方向. 0 水平 1 垂直

___

#### textAttachmentType

• `Optional` **textAttachmentType**: *number*[]

文本对齐类型. type(0-10) value(0-4) [type1, value1, type2, value2....]

___

#### textHeight

• `Optional` **textHeight**: *number*

文本高.

___

#### textLocation

• `Optional` **textLocation**: [*number*, *number*, *undefined* \| *number*]

文本位置.

___

#### textRotation

• `Optional` **textRotation**: *number*

文本旋转角度.

___

#### textStyle

• `Optional` **textStyle**: *string*

文本样式.

___

#### textWidth

• `Optional` **textWidth**: *number*

文本宽.

___

#### typename

• `Optional` **typename**: *string*

类型.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[typename](#typename)

___

#### visibility

• `Optional` **visibility**: *boolean*

可见.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[visibility](#visibility)

___

#### xdata

• `Optional` **xdata**: *string*

扩展数据.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[xdata](#xdata)


<a name="classesdefaultdbmtextmd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / [default](#modulesdefaultmd) / DbMText
