/// <summary> /// Copy the gradient properties from another element /// </summary> protected void CopyGradientprop(ShapeElement element) { this.useGradientFillColor = element.useGradientFillColor; this.gradientColor = element.gradientColor; this.gradientAlpha = element.gradientAlpha; this.gradientDimension = element.gradientDimension; this.gradientAngle = element.gradientAngle; this.endColorPosition = element.endColorPosition; }
/// <summary> /// Deep copies "this" object to "to" object /// </summary> /// <param name="to">Object to copied</param> protected void CopyProperties(ShapeElement to) { this.CopyProperties(to); }