1 write to Value
System.Private.Windows.Core (1)
Windows.Win32.HPEN.g.cs (1)
29 internal HPEN(void* value) => this.Value = value;
14 references to Value
System.Private.Windows.Core (10)
Windows.Win32.HPEN.g.cs (10)
37 internal bool IsNull => Value == default; 39 public static implicit operator void*(HPEN value) => value.Value; 43 public static bool operator ==(HPEN left, HPEN right) => left.Value == right.Value; 47 public bool Equals(HPEN other) => this.Value == other.Value; 51 public override int GetHashCode() => unchecked((int)this.Value); 53 public override string ToString() => $"0x{(nuint)this.Value:x}"; 55 public static implicit operator IntPtr(HPEN value) => new IntPtr(value.Value); 61 public static implicit operator HGDIOBJ(HPEN value) => new HGDIOBJ(value.Value);
System.Windows.Forms (2)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1833FrameStyle.Dashed => (HGDIOBJ)PInvokeCore.CreatePen(PEN_STYLE.PS_DOT, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value, 1834FrameStyle.Thick => (HGDIOBJ)PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 2, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
86using SelectObjectScope selection = new(hdc, (HGDIOBJ)hpen.Value); 143using var penSelection = pen.IsNull ? default : new SelectObjectScope(hdc, (HGDIOBJ)pen.Value);