menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SegmentedItemAutomationPeer - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SegmentedItemAutomationPeer

    Exposes the SfSegmentedItem to UI Automation.

    Inheritance
    System.Object
    SegmentedItemAutomationPeer
    Implements
    Microsoft.UI.Xaml.Automation.Provider.ISelectionItemProvider
    Namespace: Syncfusion.UI.Xaml.Automation.Peers
    Assembly: Syncfusion.Editors.WinUI.dll
    Syntax
    public class SegmentedItemAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider

    Constructors

    SegmentedItemAutomationPeer(SfSegmentedItem)

    Initializes a new instance of the SegmentedItemAutomationPeer class.

    Declaration
    public SegmentedItemAutomationPeer(SfSegmentedItem control)
    Parameters
    Type Name Description
    SfSegmentedItem control

    The owner element.

    Properties

    IsSelected

    Gets a value that indicates whether an item is selected.

    Declaration
    public bool IsSelected { get; }
    Property Value
    Type Description
    System.Boolean

    true, if the element is selected; otherwise, false.

    SelectionContainer

    Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

    Declaration
    public IRawElementProviderSimple SelectionContainer { get; }
    Property Value
    Type Description
    Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple

    The UI Automation provider.

    Methods

    AddToSelection()

    Adds the current element to the selected item of the SfSegmentedControl.

    Declaration
    public void AddToSelection()

    GetAutomationControlTypeCore()

    Provides the SegmentedItemAutomationPeer behavior when a Microsoft UI Automation client calls GetAutomationControlType.

    Declaration
    protected override AutomationControlType GetAutomationControlTypeCore()
    Returns
    Type Description
    Microsoft.UI.Xaml.Automation.Peers.AutomationControlType

    Returns the enum value of type Microsoft.UI.Xaml.Automation.Peers.AutomationControlType.

    GetNameCore()

    Provides the SegmentedItemAutomationPeer behavior when a Microsoft UI Automation client calls GetName.

    Declaration
    protected override string GetNameCore()
    Returns
    Type Description
    System.String

    Returns a string value.

    GetPatternCore(PatternInterface)

    Provides the peer's behavior when a Microsoft UI Automation client calls GetPattern or an equivalent Microsoft UI Automation client API.

    Declaration
    protected override object GetPatternCore(PatternInterface patternInterface)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Automation.Peers.PatternInterface patternInterface

    A value from the PatternInterface enumeration.

    Returns
    Type Description
    System.Object

    The object that implements the pattern interface; null, if the peer does notsupport this interface.

    RemoveFromSelection()

    Removes the current element from the selected item of the SfSegmentedControl.

    Declaration
    public void RemoveFromSelection()

    Select()

    Clears any existing selection and then selects the current element.

    Declaration
    public void Select()

    Implements

    Microsoft.UI.Xaml.Automation.Provider.ISelectionItemProvider
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved