ScreenElement Class
Abstract base class for an element of a ScreenLayer, for example a legend.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CECore assembly)
Syntax
public abstract class ScreenElement : ResourceObjectRemarks
Abstract base class for an element of a ScreenLayer, for example a legend.
Inheritance Hierarchy
System.Object
EngineObject
ResourceObject
ScreenElement
Legend
NorthArrow
ScaleBar
SimpleScreenElement
Platforms
Windows, Linux, Android
ScreenElement Members
The ScreenElement type has the following members.
Properties
| Name | Description |
|---|---|
| AlignLeft | Gets or sets a flag that controls horizontal alignment of the entire element. |
| AlignTop | Gets or sets a flag that controls vertical alignment of the entire element. |
| BackgroundColor | Gets or sets the background color. |
| IsDisposed | Gets a value that tells whether the current ScreenElement has been disposed. Inherited from EngineObject |
| Name | Gets or sets the name of the ScreenElement. Inherited from ResourceObject |
| NativeHandle | Gets the native Carmenta Engine kernel object the current ScreenElement represents. Inherited from EngineObject |
| OffsetX | Gets or sets a rightward pixel offset for the element (rightward is the screen x axis direction). |
| OffsetY | Gets or sets a downward pixel offset for the element (downward is the screen y axis direction). |
| OutlineColor | Gets or sets the color of the screen element outline. |
| OutlineMargin | Gets or sets the distance between the screen element outline and its contents. |
| OutlineWidth | Gets or sets the width of the screen element outline. |
| IUserProperties.UserProperties | Gets the AttributeSet that contains the user properties. Inherited from IUserProperties |
Methods
| Name | Description |
|---|---|
| Clone | Creates a copy of an object. Inherited from EngineObject |
| Dispose | Releases the reference to the native Carmenta Engine kernel instance the EngineObject represents. Inherited from EngineObject |
| Equals | Determines whether this instance is equal to another. Inherited from EngineObject |