|
using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;
namespace ShapeShow.Library
{
public interface IShape
{
/// <summary>
/// A collection of points representing the shape
/// </summary>
PointCollection Points { get; }
/// <summary>
/// The height of the shape
/// </summary>
Double Height { get; set; }
/// <summary>
/// The width of the shape
/// </summary>
Double Width { get; set; }
/// <summary>
/// The topmost y-coordinate of the shape
/// </summary>
Double Top { get; set; }
/// <summary>
/// The leftmost x-coordinate of the shape
/// </summary>
Double Left { get; set; }
/// <summary>
/// The color of the inside of the shape
/// </summary>
Brush FillBrush { get; set; }
/// <summary>
/// The width of the shape stroke
/// </summary>
Double OutlineWidth { get; set; }
/// <summary>
/// The color of the shape stroke
/// </summary>
Brush OutlineBrush { get; set; }
/// <summary>
/// The UI element of the shape
/// </summary>
UIElement UIElement { get; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Barry Dorman is a software engineer from the Birmingham, AL area. His primary focus is ASP.NET. Barry graduated with a BS in Electrical Engineering from The University of Alabama at Birmingham in 2006. Since then, he has kept himself busy working in the healthcare industry.