ISuggestedAction Interface

Visual Studio 2015
 

A action that is suggested as possible. Examples of such suggested actions include quick fixes for syntax errors, suggestions aimed on improving code quality or refactoring. Suggested actions are provided by ISuggestedActionsSource instances and represented by a LightBulb presenter as menu items in a LightBulb dropdown menu.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

[CLSCompliantAttribute(false)]
public interface ISuggestedAction : IDisposable, ITelemetryIdProvider<Guid>

NameDescription
System_CAPS_pubpropertyDisplayText

Gets the localized text representing the suggested action. This property should never be null.

System_CAPS_pubpropertyHasActionSets

Determines whether this action has nested suggested action sets.

System_CAPS_pubpropertyHasPreview

Determines whether this suggested action can provide a preview via GetPreviewAsync(CancellationToken)./// </summary>/// <remarks> </remarks>

System_CAPS_pubpropertyIconAutomationText

Gets the text to be used as the automation name for the icon when it's displayed. For purposes of accessibility, this property should not be null if the icon is specified.

System_CAPS_pubpropertyIconMoniker

Gets an optional icon representing the suggested action or null if this suggested action doesn't have an icon.

System_CAPS_pubpropertyInputGestureText

Gets the text describing an input gesture that will apply the suggested action.

Return to top
Show: