private List<Geocoordinates> _coordinateList;
/// <summary>
- /// Creates a polygon visual object
+ /// Creates a polygon visual object.
/// </summary>
- /// <param name="coordinates">list of geographical coordinates</param>
- /// <param name="color">background color</param>
- /// <exception cref="ArgumentException">Throws if input values are invalid</exception>
+ /// <param name="coordinates">List of geographical coordinates</param>
+ /// <param name="color">Background color</param>
+ /// <exception cref="ArgumentException">Thrown when input values are invalid.</exception>
public Polygon(IEnumerable<Geocoordinates> coordinates, Color color) : base()
{
var err = Interop.ErrorCode.InvalidParameter;
}
/// <summary>
- /// Clicked event
+ /// Adds or removes clicked event handlers.
/// </summary>
public event EventHandler Clicked;
+ /// <summary>
+ /// Gets or sets visibility for the polygon.
+ /// </summary>
public override bool IsVisible
{
get { return handle.IsVisible; }
}
/// <summary>
- /// List of geographical coordinates of polygon vertices
+ /// Gets or sets a list of geographical coordinates of polygon vertices.
/// </summary>
public IEnumerable<Geocoordinates> Coordinates
{
}
/// <summary>
- /// Background fill color
+ /// Gets or sets background color to fill the polygon.
/// </summary>
public Color FillColor
{
}
}
+ /// <summary>
+ /// Releases all resources used by this object.
+ /// </summary>
public void Dispose()
{
Dispose(true);