*
*/
+using System;
using System.ComponentModel;
using System.Collections.Generic;
{
get {
global::System.IntPtr cPtr = Interop.Shape.GetFillColor(BaseHandle.getCPtr(this));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- Color ret = Vector4.GetVector4FromPtr(cPtr);
- return ret;
+ return Vector4.GetVector4FromPtr(cPtr);
}
set {
Interop.Shape.SetFillColor(BaseHandle.getCPtr(this), Vector4.getCPtr(value));
public FillRuleType FillRule
{
get {
- FillRuleType ret = (FillRuleType)Interop.Shape.GetFillRule(BaseHandle.getCPtr(this));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ return (FillRuleType)Interop.Shape.GetFillRule(BaseHandle.getCPtr(this));
}
set {
Interop.Shape.SetFillRule(BaseHandle.getCPtr(this), (int)value);
public float StrokeWidth
{
get {
- float ret = Interop.Shape.GetStrokeWidth(BaseHandle.getCPtr(this));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ return Interop.Shape.GetStrokeWidth(BaseHandle.getCPtr(this));
}
set {
Interop.Shape.SetStrokeWidth(BaseHandle.getCPtr(this), value);
{
get {
global::System.IntPtr cPtr = Interop.Shape.GetStrokeColor(BaseHandle.getCPtr(this));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- Color ret = Vector4.GetVector4FromPtr(cPtr);
- return ret;
+ return Vector4.GetVector4FromPtr(cPtr);
}
set {
Interop.Shape.SetStrokeColor(BaseHandle.getCPtr(this), Vector4.getCPtr(value));
public StrokeCapType StrokeCap
{
get {
- StrokeCapType ret = (StrokeCapType)Interop.Shape.GetStrokeCap(BaseHandle.getCPtr(this));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ return (StrokeCapType)Interop.Shape.GetStrokeCap(BaseHandle.getCPtr(this));
}
set {
Interop.Shape.SetStrokeCap(BaseHandle.getCPtr(this), (int)value);
public StrokeJoinType StrokeJoin
{
get {
- StrokeJoinType ret = (StrokeJoinType)Interop.Shape.GetStrokeJoin(BaseHandle.getCPtr(this));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ return (StrokeJoinType)Interop.Shape.GetStrokeJoin(BaseHandle.getCPtr(this));
}
set {
Interop.Shape.SetStrokeJoin(BaseHandle.getCPtr(this), (int)value);
/// <summary>
/// The stroke dash pattern. The dash pattern is specified dash pattern.
/// </summary>
+ /// <exception cref="ArgumentNullException"> Thrown when value is null. </exception>
[EditorBrowsable(EditorBrowsableState.Never)]
public List<float> StrokeDash
{
get {
List<float> ret = new List<float>();
int patternCount = Interop.Shape.GetStrokeDashCount(BaseHandle.getCPtr(this));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
for (int i = 0; i < patternCount; i++)
{
ret.Add(Interop.Shape.GetStrokeDashIndexOf(BaseHandle.getCPtr(this), i));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
return ret;
}
set {
+ if (value == null)
+ {
+ throw new ArgumentNullException(nameof(value));
+ }
float[] pattern = new float[value.Count];
for (int i = 0; i < value.Count; i++)
{