ToolBarExtensions.Toggle method (1 of 2)
이 콘텐츠는 아직 번역되지 않았습니다.
Adds an entry that stays visibly pressed while its state is on.
public static ToolBarGroup Toggle(this ToolBarGroup group, Command command, bool isChecked = false)| parameter | description |
|---|---|
| group | Target group. |
| command | Command the entry runs. |
| isChecked | Whether the entry starts on. |
Return Value
Section titled “Return Value”The group for chaining.
See Also
Section titled “See Also”- class ToolBarGroup
- class Command
- class ToolBarExtensions
- namespace Aprillz.MewUI
ToolBarExtensions.Toggle method (2 of 2)
Section titled “ToolBarExtensions.Toggle method (2 of 2)”Adds a toggle entry that runs a command with data as the invocation argument.
public static ToolBarGroup Toggle(this ToolBarGroup group, Command command, object data, IconTemplate? icon = null)| parameter | description |
|---|---|
| group | Target group. |
| command | Command the entry runs. |
| data | Value passed to the command. |
| icon | Icon shown instead of the command’s own, or null to show the command’s. |
Return Value
Section titled “Return Value”The group for chaining.
See Also
Section titled “See Also”- class ToolBarGroup
- class Command
- class IconTemplate
- class ToolBarExtensions
- namespace Aprillz.MewUI