示例#1
0
 /// <summary>
 /// Creates a new instance of the StiBorder class.
 /// </summary>
 /// <param name="side">Border sides.</param>
 /// <param name="color">Border color.</param>
 /// <param name="size">Border size.</param>
 /// <param name="style">Border style.</param>
 /// <param name="dropShadow">Drop shadow or not.</param>
 /// <param name="shadowSize">Shadow size.</param>
 /// <param name="shadowBrush">Brush for drawing shadow of border.</param>
 /// <param name="topmost">Value which indicates that border sides will be drawn on top of all components.</param>
 public StiBorder(StiBorderSides side, Color color, double size, StiPenStyle style,
                  bool dropShadow, double shadowSize, StiBrush shadowBrush, bool topmost)
 {
     if (bitsBorder.IsDefault(side, color, size, style, dropShadow, shadowSize, topmost))
     {
         this.bits = null;
     }
     else
     {
         this.bits = new bitsBorder(side, color, size, style, shadowSize, dropShadow, topmost);
     }
     this.shadowBrush = shadowBrush;
 }
示例#2
0
 protected bool Equals(bitsBorder other)
 {
     return(Side == other.Side && Color.Equals(other.Color) && Size.Equals(other.Size) && Style == other.Style && ShadowSize.Equals(other.ShadowSize) && Topmost == other.Topmost && DropShadow == other.DropShadow);
 }
示例#3
0
 public static bool IsDefault(bitsBorder bits)
 {
     return(IsDefault(bits.Side, bits.Color, bits.Size, bits.Style, bits.DropShadow, bits.ShadowSize, bits.Topmost));
 }