internal static CustomLineCap CreateCustomLineCapObject(IntPtr cap) { CustomLineCapType capType = CustomLineCapType.Default; int status = SafeNativeMethods.Gdip.GdipGetCustomLineCapType(new HandleRef(null, cap), out capType); if (status != 0) { SafeNativeMethods.Gdip.GdipDeleteCustomLineCap(new HandleRef(null, cap)); throw SafeNativeMethods.Gdip.StatusException(status); } switch (capType) { case CustomLineCapType.Default: return(new CustomLineCap(cap)); case CustomLineCapType.AdjustableArrowCap: return(new AdjustableArrowCap(cap)); } SafeNativeMethods.Gdip.GdipDeleteCustomLineCap(new HandleRef(null, cap)); throw SafeNativeMethods.Gdip.StatusException(6); }
public static extern GpStatus GdipGetCustomLineCapType(GpCustomLineCap customCap, out CustomLineCapType capType);
internal static int GdipGetCustomLineCapType(HandleRef customCap, out CustomLineCapType capType) => GdipGetCustomLineCapType_ptr.Delegate(customCap, out capType);
internal static extern int GdipGetCustomLineCapType(HandleRef customCap, out CustomLineCapType capType);
GdipGetCustomLineCapType(GpCustomLineCap customCap, out CustomLineCapType capType);