public LineCapEx(LineCapEx from, float size) { _size = 0; _currentStyle = null; CopyFrom(from); _size = size; }
private LineCapEx(LineCapExtension ex) { _currentStyle = ex; _size = _currentStyle.DefaultSize; }
public void CopyFrom(LineCapEx from) { this._size = from._size; this._currentStyle = from._currentStyle; }
public LineCapEx(LineCapEx from) { _size = 0; _currentStyle = null; CopyFrom(from); }
public LineCapEx(string name, float size) { _currentStyle = _registeredStyles[name]; if (_currentStyle == null) throw new ArgumentException(string.Format("Unknown LineCapEx style: {0}", name), "name"); _size = size; }
public LineCapEx(LineCap style) { if (style == LineCap.Custom) throw new ArgumentOutOfRangeException("Style must not be a custom style, use the other constructor instead"); _currentStyle = _registeredStyles[Enum.GetName(typeof(LineCap), style)]; _size = _currentStyle.DefaultSize; }
public LineCapEx(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { _currentStyle = null; _size = 0; SetObjectData(this, info, context, null); }