-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
…bility
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
internal static partial class Interop | ||
{ | ||
internal static partial class UiaCore | ||
{ | ||
[ComImport] | ||
[Guid("6278cab1-b556-4a1a-b4e0-418acc523201")] | ||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
public interface IMultipleViewProvider | ||
{ | ||
string? GetViewName(int viewId); | ||
|
||
void SetCurrentView(int viewId); | ||
|
||
int CurrentView { get; } | ||
|
||
int[]? GetSupportedViews(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using static Interop.UiaCore; | ||
|
||
namespace System.Windows.Forms | ||
{ | ||
public partial class ColumnHeader | ||
{ | ||
internal class ListViewColumnHeaderAccessibleObject : AccessibleObject | ||
{ | ||
private readonly ColumnHeader _owningColumnHeader; | ||
|
||
public ListViewColumnHeaderAccessibleObject(ColumnHeader columnHeader) | ||
{ | ||
_owningColumnHeader = columnHeader ?? throw new ArgumentNullException(nameof(columnHeader)); | ||
} | ||
|
||
internal override object? GetPropertyValue(UIA propertyID) | ||
=> propertyID switch | ||
{ | ||
UIA.ControlTypePropertyId => UIA.HeaderItemControlTypeId, | ||
UIA.NamePropertyId => _owningColumnHeader.Text, | ||
_ => base.GetPropertyValue(propertyID) | ||
}; | ||
} | ||
} | ||
} |