28 references to GetControl
System.Windows.Forms (28)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (28)
61
IEnumUnknown.Interface enumUnknown = GetContainer() is { } container &&
GetControl
() is { } control
81
if (
GetControl
() is AxHost hostControl)
112
DockStyle result =
GetControl
()?.Dock ?? DockStyle.None;
122
if (
GetControl
() is { } control)
131
get => GetOleColorFromColor(
GetControl
()?.BackColor ?? default);
134
if (
GetControl
() is { } control)
143
get =>
GetControl
()?.Enabled ?? BOOL.FALSE;
146
if (
GetControl
() is { } control)
155
get => GetOleColorFromColor(
GetControl
()?.ForeColor ?? default);
158
if (
GetControl
() is { } control)
167
get => Pixel2Twip(
GetControl
()?.Height ?? 0, xDirection: false);
170
if (
GetControl
() is { } control)
179
get => Pixel2Twip(
GetControl
()?.Left ?? 0, xDirection: true);
182
if (
GetControl
() is { } control)
203
get => (short)(
GetControl
()?.TabIndex ?? 0);
206
if (
GetControl
() is { } control)
215
get =>
GetControl
()?.TabStop ?? BOOL.FALSE;
218
if (
GetControl
() is { } control)
227
get => Pixel2Twip(
GetControl
()?.Top ?? 0, xDirection: false);
230
if (
GetControl
() is { } control)
239
get =>
GetControl
()?.Visible ?? false;
242
if (
GetControl
() is { } control)
251
get => Pixel2Twip(
GetControl
()?.Width ?? 0, xDirection: true);
254
if (
GetControl
() is { } control)
261
public BSTR Name => new(
GetControl
() is { } control ? GetNameForControl(control) : string.Empty);
263
public HWND Hwnd =>
GetControl
()?.HWND ?? HWND.Null;
276
get =>
GetControl
()?.Text ?? string.Empty;
279
if (
GetControl
() is { } control)