/// <summary> /// Indicates wether designer needs to serialize <see cref="CornerShape"/> property. /// </summary> /// <returns>Returns true if <see cref="CornerShape"/> property needs to be serialized.</returns> protected bool ShouldSerializeCornerShape() { return(cornerShape.DefaultChanged()); }
/// <summary> /// Get wether default values of the object has been modified. /// </summary> /// <returns>Returns true if default values has been modified for current object.</returns> public virtual bool DefaultChanged() { return(borderLineStyle != DashStyle.Solid || borderVisibility != ToolStripStatusLabelBorderSides.All || CornerShape.DefaultChanged()); }