|
/////////////////////////////////////////////////////////////////////////////////
// MyNeoReport Designer
// --------------------
// Project Copyright (C) : Fabio Zanetta, email: support@neodatatype.net
// Portions Copyright (C) : Microsoft Corporation. All Rights Reserved.
// License : docs/license.txt
// ------------------------------------------------------------------------------
// File created by : Fabio Zanetta, email: support@neodatatype.net
// ------------------------------------------------------------------------------
// Please, if you modify some parts of this file mark them as described in
// docs/modify_guidelines.txt
/////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using NeoDataType.Graphic;
using NeoDataType.Documents;
namespace NeoDataType.Graphic.Christmas
{
[SaveThisClass()]
public class Star: GraphicItem
{
Color _foreColor = Color.Orange;
Color _fillColor = Color.Yellow;
int _sidesCount = 5;
public Star()
{
AntiAlias = true;
Painter = new StarPainter();
}
[SaveThisProperty]
public int SidesCount
{
get { return _sidesCount; }
set
{
_sidesCount = value;
PropertyChanged();
}
}
[SaveThisProperty(typeof(ColorFormatter))]
public Color ForeColor
{
get { return _foreColor; }
set
{
_foreColor = value;
PropertyChanged();
}
}
[SaveThisProperty(typeof(ColorFormatter))]
public Color FillColor
{
get { return _fillColor; }
set
{
_fillColor = value;
PropertyChanged();
}
}
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.