Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.32 KB

File metadata and controls

31 lines (22 loc) · 1.32 KB
title IconData Class
description The IconData class is used to represent icon data for a command in the Command Palette.
ms.date 2/27/2025
ms.topic reference
no-loc
PowerToys
Windows
Insider

IconData Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Implements IIconData

The IconData class is used to represent icon data for a command in the Command Palette. It provides properties to access the icon data and its associated URI.

Constructors

Constructor Description
IconData(IRandomAccessStreamReference) Initializes the Data property with the provided IRandomAccessStreamReference.
IconData(String) Initializes the Icon property with the provided String.

Properties

Property Type Description
Data Windows.Storage.Streams.IRandomAccessStreamReference Gets or sets the icon data as a stream reference. This property is used to load the icon data from a stream.
Icon String Gets or sets the icon URI. This property is used to load the icon from a URI.