GraffitiSuite Docs
Docs
Rectangle
Loading document parsing libraries...
# Rectangle Class Inherits Shape ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Constructor | bounds as GraffitiMap.Bounds | (None) | Creates a new instance of the class. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Attributes | mBounds | GraffitiMap.Bounds | (None) | | Bounds | GraffitiMap.Bounds | (None) | (None) | | FillColor | Color | (None) | (None) | | StrokePosition | GraffitiMap.Shapes.StrokePositions | (None) | (None) | ## Examples ### Sample Rectangle ``` var rectNE as new GraffitiMap.Point( 36.120961, -82.141759 ) var rectSW as new GraffitiMap.Point( 36.520961, -82.541759 ) var rectBounds as new GraffitiMap.Bounds( rectNE, rectSW ) var johnsonCityArea as new GraffitiMap.Shapes.Rectangle( rectBounds ) johnsonCityArea.Tooltip = "Mountains and GraffitiSuite and stuff." johnsonCityArea.FillColor = color.RGB( 0, 0, 255, 100 ) johnsonCityArea.StrokeColor = color.RGB( 0, 0, 255, 200 ) johnsonCityArea.StrokeWeight = 4 johnsonCityArea.StrokePosition = GraffitiMap.Shapes.StrokePositions.Inside johnsonCityArea.Editable = True johnsonCityArea.Draggable = True me.AddShape( johnsonCityArea ) ```