1 write to HPEN
System.Windows.Forms.Primitives (1)
Windows\Win32\CreatePenScope.cs (1)
30HPEN = PInvoke.CreatePen(PEN_STYLE.PS_SOLID, width, color);
5 references to HPEN
System.Windows.Forms.Primitives (5)
Windows\Win32\CreatePenScope.cs (5)
32public static implicit operator HPEN(in CreatePenScope scope) => scope.HPEN; 33public static implicit operator HGDIOBJ(in CreatePenScope scope) => (HGDIOBJ)scope.HPEN.Value; 35public bool IsNull => HPEN.IsNull; 39if (!HPEN.IsNull) 41PInvokeCore.DeleteObject(HPEN);