Skip to content

Commit 1877de9

Browse files
committed
remove private items and deprecated classes
1 parent 67f0920 commit 1877de9

23 files changed

+201
-278
lines changed

hub/dev-environment/toc.yml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,16 @@ items:
353353
items:
354354
- name: Microsoft.CommandPalette.Extensions.Toolkit
355355
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/microsoft-commandpalette-extensions-toolkit.md
356+
- name: AnonymousCommand
357+
items:
358+
- name: AnonymousCommand
359+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/anonymouscommand.md
360+
- name: Constructors
361+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/anonymouscommand_constructor.md
362+
- name: Methods
363+
items:
364+
- name: Invoke
365+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/anonymouscommand_invoke.md
356366
- name: BaseObservable
357367
items:
358368
- name: BaseObservable
@@ -361,14 +371,16 @@ items:
361371
items:
362372
- name: OnPropertyChanged
363373
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/baseobservable_onpropertychanged.md
364-
- name: Choice
365-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choice.md
366374
- name: ChoiceSetSetting
367375
items:
368376
- name: ChoiceSetSetting
369377
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting.md
370378
- name: Constructors
371379
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting_constructor.md
380+
- name: Nested classes
381+
items:
382+
- name: Choice
383+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choice.md
372384
- name: Methods
373385
items:
374386
- name: LoadFromJson
@@ -535,20 +547,6 @@ items:
535547
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/fallbackcommanditem_updatequery.md
536548
- name: Filter
537549
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/filter.md
538-
- name: Form
539-
items:
540-
- name: Form
541-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/form.md
542-
- name: Methods
543-
items:
544-
- name: DataJson
545-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/form_datajson.md
546-
- name: StateJson
547-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/form_statejson.md
548-
- name: SubmitForm
549-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/form_submitform.md
550-
- name: TemplateJson
551-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/form_templatejson.md
552550
- name: FormContent
553551
items:
554552
- name: FormContent
@@ -559,14 +557,6 @@ items:
559557
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/formcontent_submitform_string.md
560558
- name: SubmitForm(String, String)
561559
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/formcontent_submitform_stringstring.md
562-
- name: FormPage
563-
items:
564-
- name: FormPage
565-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/formpage.md
566-
- name: Methods
567-
items:
568-
- name: Forms
569-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/formpage_forms.md
570560
- name: GoToPageArgs
571561
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/gotopageargs.md
572562
- name: IconData
@@ -687,14 +677,6 @@ items:
687677
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/logmessage_constructor.md
688678
- name: MarkdownContent
689679
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/markdowncontent.md
690-
- name: MarkdownPage
691-
items:
692-
- name: Markdown Page
693-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/markdownpage.md
694-
- name: Methods
695-
items:
696-
- name: Bodies
697-
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/markdownpage_bodies.md
698680
- name: MatchOption
699681
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/matchoption.md
700682
- name: MatchResult
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: AnonymousCommand Class
3+
description:
4+
ms.date: 2/27/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# AnonymousCommand Class
10+
11+
## Definition
12+
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
14+
15+
Inherits [InvokableCommand](invokablecommand.md)
16+
17+
## Constructors
18+
19+
| Constructor | Description |
20+
| :--- | :--- |
21+
| [AnonymousCommand(Action)](anonymouscommand_constructor.md) | |
22+
23+
## Properties
24+
25+
| Property | Type | Description |
26+
| :--- | :--- | :--- |
27+
| Result | [ICommandResult](../microsoft-commandpalette-extensions/icommandresult.md) | |
28+
29+
## Methods
30+
31+
| Method | Description |
32+
| :--- | :--- |
33+
| [Invoke()](anonymouscommand_invoke.md) | |
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: AnonymousCommand Constructors
3+
description:
4+
ms.date: 2/27/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# AnonymousCommand Constructors
10+
11+
## AnonymousCommand(Action) Constructor
12+
13+
### Definition
14+
15+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
16+
17+
Initializes a new instance of the [AnonymousCommand](anonymouscommand.md) class with an `action`.
18+
19+
```C#
20+
public AnonymousCommand(Action? action)
21+
{
22+
Name = "Invoke";
23+
_action = action;
24+
}
25+
```
26+
27+
### Parameters
28+
29+
**`action`** Action
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
---
2-
title: Form.SubmitForm(String) Method
2+
title: AnonymousCommand.Invoke() Method
33
description:
4-
ms.date: 2/25/2025
4+
ms.date: 2/27/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
88

9-
# Form.SubmitForm(String) Method
9+
# AnonymousCommand.Invoke() Method
1010

1111
## Definition
1212

1313
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
1414

15-
## Parameters
16-
17-
**`payload`** String
18-
1915
## Returns
2016

2117
[ICommandResult](../microsoft-commandpalette-extensions/icommandresult.md)

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: ChoiceSetSetting Class
33
description:
4-
ms.date: 2/19/2025
4+
ms.date: 2/27/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
@@ -18,7 +18,6 @@ Inherits [Setting<String>](setting.md)
1818

1919
| Constructor | Description |
2020
| :--- | :--- |
21-
| [ChoiceSetSetting()](choicesetsetting_constructor.md#choicesetsetting-constructor) | Initializes `Choices` to an empty list. |
2221
| [ChoiceSetSetting(String, List<Choice>)](choicesetsetting_constructor.md#choicesetsettingstring-list-constructor) | |
2322
| [ChoiceSetSetting(String, String, String, List<Choice>)](choicesetsetting_constructor.md#choicesetsettingstring-string-string-list-constructor) | |
2423

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting_constructor.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
---
22
title: ChoiceSetSetting Constructors
33
description:
4-
ms.date: 2/19/2025
4+
ms.date: 2/27/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
88

99
# ChoiceSetSetting Constructors
1010

11-
## ChoiceSetSetting() Constructor
12-
13-
### Definition
14-
15-
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
16-
17-
Initializes a new instance of the [ChoiceSetSetting](choicesetsetting.md) class with [Choices](choicesetsetting.md#properties) set to an empty list.
18-
19-
```C#
20-
private ChoiceSetSetting()
21-
: base()
22-
{
23-
Choices = [];
24-
}
25-
```
26-
2711
## ChoiceSetSetting(String, List<Choice>) Constructor
2812

2913
### Definition

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/clipboardhelper.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: ClipboardHelper Class
33
description:
4-
ms.date: 2/19/2025
4+
ms.date: 2/27/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
@@ -12,13 +12,6 @@ no-loc: [PowerToys, Windows, Insider]
1212

1313
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
1414

15-
## Properties
16-
17-
| Property | Type | Description |
18-
| :--- | :--- | :--- |
19-
| _clipboardSupported | Boolean | Is set to `true` by default. |
20-
| _internalClipboard | String | This is used if an external clipboard is not available. This is also useful for testing in CI. |
21-
2215
## Methods
2316

2417
| Method | Description |

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/commandcontextitem.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: CommandContextItem Class
33
description:
4-
ms.date: 2/19/2025
4+
ms.date: 2/27/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
@@ -20,7 +20,8 @@ Implements [ICommandContextItem](../microsoft-commandpalette-extensions/icommand
2020

2121
| Constructor | Description |
2222
| :--- | :--- |
23-
| [CommandContextItem(ICommand)](commandcontextitem_constructor.md) | |
23+
| [CommandContextItem(ICommand)](commandcontextitem_constructor.md#commandcontextitemicommand-constructor) | |
24+
| [CommandContextItem(String, String, String, Action, ICommandResult)](commandcontextitem_constructor.md#commandcontextitemstring-string-string-action-icommandresult-constructor) | |
2425

2526
## Properties
2627

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/commandcontextitem_constructor.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: CommandContextItem Constructors
33
description:
4-
ms.date: 2/19/2025
4+
ms.date: 2/27/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
@@ -26,3 +26,49 @@ public CommandContextItem(ICommand command)
2626
### Parameters
2727

2828
**`command`** [ICommand](../microsoft-commandpalette-extensions/icommand.md)
29+
30+
## CommandContextItem(String, String, String, Action, [ICommandResult](../microsoft-commandpalette-extensions/icommandresult.md)) Constructor
31+
32+
### Definition
33+
34+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
35+
36+
Initializes a new instance of the [CommandContextItem](commandcontextitem.md) class from the base [CommandItem](commanditem.md) class, setting its [Title](commanditem.md#properties) property to `title`, its [Subtitle](commanditem.md#properties) to `subtitle`, and creates a new [AnonymousCommand](anonymouscommand.md) object with a `name`, `action`, and `result`.
37+
38+
```C#
39+
public CommandContextItem(
40+
string title,
41+
string subtitle = "",
42+
string name = "",
43+
Action? action = null,
44+
ICommandResult? result = null)
45+
{
46+
var c = new AnonymousCommand(action);
47+
if (!string.IsNullOrEmpty(name))
48+
{
49+
c.Name = name;
50+
}
51+
52+
if (result != null)
53+
{
54+
c.Result = result;
55+
}
56+
57+
Command = c;
58+
59+
Title = title;
60+
Subtitle = subtitle;
61+
}
62+
```
63+
64+
### Parameters
65+
66+
**`title`** String
67+
68+
**`subtitle`** String
69+
70+
**`name`** String
71+
72+
**`action`** Action
73+
74+
**`result`** [ICommandResult](../microsoft-commandpalette-extensions/icommandresult.md)

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/commanditem.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: CommandItem Class
33
description:
4-
ms.date: 2/19/2025
4+
ms.date: 2/27/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
@@ -20,8 +20,10 @@ Implements [ICommandItem](../microsoft-commandpalette-extensions/icommanditem.md
2020

2121
| Constructor | Description |
2222
| :--- | :--- |
23+
| [CommandItem()](commanditem_constructor.md#commanditem-constructor) | |
2324
| [CommandItem(ICommand)](commanditem_constructor.md#commanditemicommand-constructor) | |
2425
| [CommandItem(ICommandItem)](commanditem_constructor.md#commanditemicommanditem-constructor) | |
26+
| [CommandItem(String, String, String, Action, ICommandResult)](commanditem_constructor.md#commanditemstring-string-string-action-icommandresult-constructor) | |
2527

2628
## Properties
2729

0 commit comments

Comments
 (0)