/// <summary> /// Clones this instance. /// </summary> /// <returns>Clone of this object.</returns> public override object Clone() { TriangleData data = new TriangleData(); CloneBaseData(data); if (_fill != null) { data._fill = _fill.Clone(); } if (_outline != null) { data._outline = _outline.Clone(); } return(data); }
public TriangleAnnotation(TriangleData data) : base(3, data) { this.SetValue(FillProperty, data.Fill); this.SetValue(OutlineProperty, data.Outline); }