C# Класс GoogleCloudExtension.Utils.SelectionUtils

This class provides helpers to update the properties window, manage the currently selected "item".
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateTrackSelection ITrackSelection
GetPropertiesWindow IVsWindowFrame
TicklePropertiesWindow void

Открытые методы

Метод Описание
ActivatePropertiesWindow ( ) : void
ClearSelection ( ) : void

Clears the selection, making the property window empty.

SelectItem ( object item ) : void

Selects the given item, showing it in the properties window.

SelectionUtils ( Microsoft.VisualStudio.Shell.ToolWindowPane owner ) : Microsoft.VisualStudio.Shell

Приватные методы

Метод Описание
CreateTrackSelection ( IServiceProvider serviceProvider ) : ITrackSelection
GetPropertiesWindow ( IServiceProvider serviceProvider, bool forceCreate = false ) : IVsWindowFrame

Returns the properties window if it already exists.

TicklePropertiesWindow ( ) : void

This method implements a workaround for a bug in VS 2015 in which the properties window will not update the very first time is opened until it gains and loses focus. This method forces the focus to change to the properties window and then back to the owner frame to force this behavior.

Описание методов

ActivatePropertiesWindow() публичный Метод

public ActivatePropertiesWindow ( ) : void
Результат void

ClearSelection() публичный Метод

Clears the selection, making the property window empty.
public ClearSelection ( ) : void
Результат void

SelectItem() публичный Метод

Selects the given item, showing it in the properties window.
public SelectItem ( object item ) : void
item object The item to be selected.
Результат void

SelectionUtils() публичный Метод

public SelectionUtils ( Microsoft.VisualStudio.Shell.ToolWindowPane owner ) : Microsoft.VisualStudio.Shell
owner Microsoft.VisualStudio.Shell.ToolWindowPane
Результат Microsoft.VisualStudio.Shell