Example #1
0
 public LineCapEx(LineCapEx from, float size)
 {
   _size = 0;
   _currentStyle = null;
   CopyFrom(from);
   _size = size;
 }
Example #2
0
 private LineCapEx(LineCapExtension ex)
 {
   _currentStyle = ex;
   _size = _currentStyle.DefaultSize;
 }
Example #3
0
 public void CopyFrom(LineCapEx from)
 {
   this._size = from._size;
   this._currentStyle = from._currentStyle;
 }
Example #4
0
 public LineCapEx(LineCapEx from)
 {
   _size = 0;
   _currentStyle = null;
   CopyFrom(from);
 }
Example #5
0
 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;
 }
Example #6
0
 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;
 }
Example #7
0
   public LineCapEx(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
   _currentStyle = null;
   _size = 0;
   SetObjectData(this, info, context, null);
 }