<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.6.25358.103" />

AdjustableArrowCap

public sealed class AdjustableArrowCap : CustomLineCap
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); PInvokeGdiPlus.GdipGetAdjustableArrowCapHeight(NativeArrowCap, &result).ThrowIfFailed(); GC.KeepAlive(this); return result; } set { PInvokeGdiPlus.GdipSetAdjustableArrowCapHeight(NativeArrowCap, value).ThrowIfFailed(); GC.KeepAlive(this); } } public unsafe float Width { get { float result = default(float); PInvokeGdiPlus.GdipGetAdjustableArrowCapWidth(NativeArrowCap, &result).ThrowIfFailed(); GC.KeepAlive(this); return result; } set { PInvokeGdiPlus.GdipSetAdjustableArrowCapWidth(NativeArrowCap, value).ThrowIfFailed(); GC.KeepAlive(this); } } public unsafe float MiddleInset { get { float result = default(float); PInvokeGdiPlus.GdipGetAdjustableArrowCapMiddleInset(NativeArrowCap, &result).ThrowIfFailed(); GC.KeepAlive(this); return result; } set { PInvokeGdiPlus.GdipSetAdjustableArrowCapMiddleInset(NativeArrowCap, value).ThrowIfFailed(); GC.KeepAlive(this); } } public unsafe bool Filled { get { BOOL value = default(BOOL); PInvokeGdiPlus.GdipGetAdjustableArrowCapFillState(NativeArrowCap, &value).ThrowIfFailed(); GC.KeepAlive(this); return value; } set { PInvokeGdiPlus.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*); PInvokeGdiPlus.GdipCreateAdjustableArrowCap(height, width, isFilled, &nativeLineCap).ThrowIfFailed(); SetNativeLineCap((GpCustomLineCap*)nativeLineCap); } } }