AdjustableArrowCap
Represents an adjustable arrow-shaped line cap. This class cannot be inherited.
using Windows.Win32;
using Windows.Win32.Foundation;
using Windows.Win32.Graphics.GdiPlus;
namespace System.Drawing.Drawing2D
{
public sealed class AdjustableArrowCap : CustomLineCap
{
private unsafe GpAdjustableArrowCap* NativeArrowCap => (GpAdjustableArrowCap*)_nativeCap;
public unsafe float Height {
get {
float result = default(float);
PInvoke.GdipGetAdjustableArrowCapHeight(NativeArrowCap, &result).ThrowIfFailed();
GC.KeepAlive(this);
return result;
}
set {
PInvoke.GdipSetAdjustableArrowCapHeight(NativeArrowCap, value).ThrowIfFailed();
GC.KeepAlive(this);
}
}
public unsafe float Width {
get {
float result = default(float);
PInvoke.GdipGetAdjustableArrowCapWidth(NativeArrowCap, &result).ThrowIfFailed();
GC.KeepAlive(this);
return result;
}
set {
PInvoke.GdipSetAdjustableArrowCapWidth(NativeArrowCap, value).ThrowIfFailed();
GC.KeepAlive(this);
}
}
public unsafe float MiddleInset {
get {
float result = default(float);
PInvoke.GdipGetAdjustableArrowCapMiddleInset(NativeArrowCap, &result).ThrowIfFailed();
GC.KeepAlive(this);
return result;
}
set {
PInvoke.GdipSetAdjustableArrowCapMiddleInset(NativeArrowCap, value).ThrowIfFailed();
GC.KeepAlive(this);
}
}
public unsafe bool Filled {
get {
BOOL value = default(BOOL);
PInvoke.GdipGetAdjustableArrowCapFillState(NativeArrowCap, &value).ThrowIfFailed();
GC.KeepAlive(this);
return value;
}
set {
PInvoke.GdipSetAdjustableArrowCapFillState(NativeArrowCap, value).ThrowIfFailed();
GC.KeepAlive(this);
}
}
internal unsafe AdjustableArrowCap(GpCustomLineCap* nativeCap)
: base(nativeCap)
{
}
public AdjustableArrowCap(float width, float height)
: this(width, height, true)
{
}
public unsafe AdjustableArrowCap(float width, float height, bool isFilled)
{
GpAdjustableArrowCap* nativeLineCap = default(GpAdjustableArrowCap*);
PInvoke.GdipCreateAdjustableArrowCap(height, width, isFilled, &nativeLineCap).ThrowIfFailed();
SetNativeLineCap((GpCustomLineCap*)nativeLineCap);
}
}
}