11 instantiations of SafeArrayScope
System.Windows.Forms (5)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
642
UIA_PROPERTY_ID.UIA_RuntimeIdPropertyId => (VARIANT)new
SafeArrayScope
<int>(RuntimeId),
945
*pRetVal = new
SafeArrayScope
<int>(RuntimeId);
1046
*pRetVal = new
SafeArrayScope
<int>(RuntimeId);
3029
*pRetVal = result is null ? SAFEARRAY.CreateEmpty(VARENUM.VT_I4) : new
SafeArrayScope
<int>(result);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
415
using SafeArrayScope<object> scope =
new
(1);
System.Windows.Forms.Primitives (6)
System\Windows\Forms\Automation\UiaTextProvider.cs (3)
85
return
new
(SAFEARRAY.CreateEmpty(VARENUM.VT_R8));
88
SafeArrayScope<double> result =
new
((uint)(rectArray.Count * 4));
109
SafeArrayScope<double> result =
new
(4);
System\Windows\Forms\Automation\UiaTextRange.cs (1)
345
SafeArrayScope<double> ownerBounds =
new
(result.data.parray);
Windows\Win32\System\Com\ComSafeArrayScope.cs (2)
30
_value =
new
(value);
41
_value =
new
(PInvokeCore.SafeArrayCreate(VARENUM.VT_UNKNOWN, 1, &saBound));
12 references to SafeArrayScope
System.Private.Windows.Core (5)
Windows\Win32\System\Com\SafeArrayScope.cs (5)
249
public static explicit operator VARIANT(in
SafeArrayScope
<T> scope) => new() { vt = VARENUM.VT_ARRAY | scope.Value->VarType, data = new() { parray = (SAFEARRAY*)scope._value } };
251
public static implicit operator SAFEARRAY*(in
SafeArrayScope
<T> scope) => (SAFEARRAY*)scope._value;
253
public static implicit operator nint(in
SafeArrayScope
<T> scope) => scope._value;
256
public static implicit operator SAFEARRAY**(in
SafeArrayScope
<T> scope) => (SAFEARRAY**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
259
public static implicit operator void**(in
SafeArrayScope
<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value));
System.Windows.Forms (1)
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
415
using
SafeArrayScope
<object> scope = new(1);
System.Windows.Forms.Primitives (6)
System\Windows\Forms\Automation\UiaTextProvider.cs (4)
81
public static
SafeArrayScope
<double> RectListToDoubleArray(List<Rectangle> rectArray)
88
SafeArrayScope
<double> result = new((uint)(rectArray.Count * 4));
107
internal static
SafeArrayScope
<double> BoundingRectangleAsArray(Rectangle bounds)
109
SafeArrayScope
<double> result = new(4);
System\Windows\Forms\Automation\UiaTextRange.cs (1)
345
SafeArrayScope
<double> ownerBounds = new(result.data.parray);
Windows\Win32\System\Com\ComSafeArrayScope.cs (1)
21
private readonly
SafeArrayScope
<nint> _value;