/// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>A new object that is a copy of this instance.</returns>
        public object Clone()
        {
            StiBorderSide border = base.MemberwiseClone() as StiBorderSide;

            border.style = this.style;
            return(border);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of the StiAdvancedBorder class.
        /// </summary>
        /// <param name="topSide">Top side of border.</param>
        /// <param name="bottomSide">Bottom side of border.</param>
        /// <param name="leftSide">Left side of border.</param>
        /// <param name="rightSide">Right side of border.</param>
        /// <param name="dropShadow">Drop shadow or not.</param>
        /// <param name="shadowSize">Shadow siz.</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 StiAdvancedBorder(StiBorderSide topSide, StiBorderSide bottomSide, StiBorderSide leftSide, StiBorderSide rightSide,
                                 bool dropShadow, double shadowSize, StiBrush shadowBrush, bool topmost)
        {
            this.topSide    = topSide;
            this.bottomSide = bottomSide;
            this.leftSide   = leftSide;
            this.rightSide  = rightSide;

            this.leftSide.side   = StiBorderSides.Left;
            this.rightSide.side  = StiBorderSides.Right;
            this.topSide.side    = StiBorderSides.Top;
            this.bottomSide.side = StiBorderSides.Bottom;

            this.ShadowBrush = shadowBrush;
            this.ShadowSize  = shadowSize;
            this.DropShadow  = dropShadow;
            this.Topmost     = topmost;
        }
 protected bool Equals(StiBorderSide other)
 {
     return(size.Equals(other.size) && color.Equals(other.color) && side == other.side && style == other.style);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of the StiAdvancedBorder class.
 /// </summary>
 /// <param name="topSide">Top side of border.</param>
 /// <param name="bottomSide">Bottom side of border.</param>
 /// <param name="leftSide">Left side of border.</param>
 /// <param name="rightSide">Right side of border.</param>
 /// <param name="dropShadow">Drop shadow or not.</param>
 /// <param name="shadowSize">Shadow siz.</param>
 /// <param name="shadowBrush">Brush for drawing shadow of border.</param>
 public StiAdvancedBorder(StiBorderSide topSide, StiBorderSide bottomSide, StiBorderSide leftSide, StiBorderSide rightSide,
                          bool dropShadow, double shadowSize, StiBrush shadowBrush) : this(topSide, bottomSide, leftSide, rightSide,
                                                                                           dropShadow, shadowSize, shadowBrush, false)
 {
 }