a text label object
Label
01 Syntax
Microsoft.VisualBasic.Imaging.d3js.Layout.Label
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | make value copy of the text label data |
| ToString | 1 | |
| distanceTo | 1 | |
| op_Explicit | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| X | 1 | the x-coordinate of the label.(rectanglef x) |
| Y | 1 | the y-coordinate of the label.(rectanglef y) |
| width | 1 | the width of the label (approximating the label as a rectangle, rectangle width). |
| height | 1 | the height of the label (same approximation, rectangle height). |
| text | 1 | the label text. |
| pinned | 1 | 在计算位置的时候,这个标签将不会被随机模拟事件选中 即这个标签当这个属性为true的时候不会发生任何变化 |
| rectangle | 1 | 当前的这个文本标签对象所处的位置以及所占据的大小等数据 |
| location | 1 | [x, y] |
04 Members
#ctor(Label)
make value copy of the text label data
Parameters
| Name | Type | Description |
|---|---|---|
copy | Label | - |
X
the x-coordinate of the label.(rectanglef x)
Y
the y-coordinate of the label.(rectanglef y)
width
the width of the label (approximating the label as a rectangle, rectangle width).
height
the height of the label (same approximation, rectangle height).
text
the label text.
Remarks
20200618 实际上这个标签文本与实际的标签没有很多关联,也可以为一个用于获取图片对象的主键
pinned
在计算位置的时候,这个标签将不会被随机模拟事件选中 即这个标签当这个属性为true的时候不会发生任何变化
rectangle
当前的这个文本标签对象所处的位置以及所占据的大小等数据
location
[x, y]
ToString()
distanceTo(Anchor)
op_Explicit(Label)