← Back to carmenta.com
Carmenta Engine SDK Documentation
×

LegendItem.Width Property

Gets or sets the image width in pixels.

Thread safety: This property is not thread-safe. Show

Syntax

C#
public System.Int32 Width { get; set; }

Property Value

Type: System.Int32
Default: 0
The width of the legend item in pixels.

Remarks

If zero (the default), the image width will be taken from the Legend object.

The width will be ignored by a ImageLegendItem, since the image that is read from file already has a width.

In fact, for all kinds of legend items, the image may become wider than the given width if it is not cropped, and it may become narrower whether it is cropped or not.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept