LabelGraphics Properties |
The LabelGraphics type exposes the following members.
Name | Description | |
---|---|---|
BackgroundColor |
Gets or sets the color of the background behind the label.
If not specified, the default is (in CSS syntax): rgba(42, 42, 42, 0.8),
or, in CSS hexadecimal notation: #2a2a2a with alpha 0.8.
| |
BackgroundPadding |
Gets or sets the amount of padding between the text and the label's background in each dimension, in pixels.
If not specified, the default is 7 pixels horizontally and 5 pixels vertically.
| |
DisableDepthTestDistance |
Gets or sets the distance from the camera at which to disable the depth test.
This can be used to prevent clipping against terrain, for example.
When set to zero, the depth test is always applied. When set to PositiveInfinity, the depth test is never applied.
If not specified, the default is 0.0.
| |
DistanceDisplayCondition |
Gets or sets the distances from the camera at which this label will be displayed.
If not specified, the label is displayed regardless of camera distance.
| |
EyeOffset | ||
FillColor |
Gets or sets the fill color of the label.
This property only has an effect if Style is Fill or
FillAndOutline.
If not specified, the default is White.
| |
Font |
Gets or sets the font of the label.
The format of the string is expected to be a CSS font property.
If not specified, the default is "30px sans-serif".
| |
HeightReference |
Gets or sets the height reference of the label.
If not specified, the default is None.
| |
HorizontalOrigin |
Gets or sets whether the label is left, center, or right-aligned with the origin.
If not specified, the default is Center.
| |
OutlineColor |
Gets or sets the outline color of the label.
This property only has an effect if Style is Outline or
FillAndOutline.
If not specified, the default is Black.
| |
OutlineWidth |
Gets or sets the outline width of the label.
This property only has an effect if Style is Outline or
FillAndOutline.
If not specified, the default is 1.0.
| |
PixelOffset | ||
PixelOffsetScaleByDistance |
Gets or sets how the label's pixel offset should change based on the label's distance from the camera.
This scalar value will be multiplied by PixelOffset.
If not specified, then the pixel offset does not change based on the camera distance.
| |
Scale |
Gets or sets the scale of the label text.
If not specified, the default is 1.0.
| |
ScaleByDistance |
Gets or sets how the label's scale should change based on the label's distance from the camera.
This scalar value will be multiplied by Scale.
If not specified, then the scale does not change based on the camera distance.
| |
Show |
Gets or sets whether or not the label is shown.
If not specified, the default is .
| |
ShowBackground |
Gets or sets whether or not a background behind the label is shown.
If not specified, the default is .
| |
Style |
Gets or sets the style of the label.
If not specified, the default is Fill.
| |
Text |
Gets or sets the text of the label. A newline character (\n) indicates line breaks.
| |
TranslucencyByDistance |
Gets or sets how the label's translucency should change based on the label's distance from the camera.
This scalar value should range from 0 to 1.
If not specified, then the translucency does not change based on the camera distance.
| |
VerticalOrigin |
Gets or sets whether the label is bottom, center, or top-aligned with the origin.
If not specified, the default is Center.
|