共用方式為


IVsSwatchClient Members

Include Protected Members
Include Inherited Members

Enables creation of custom, owner-drawn swatch controls (color pickers) on menus. For advanced clients.

The IVsSwatchClient type exposes the following members.

Methods

  Name Description
Public method GetCellTooltip Returns a tooltip string in pbstrTooltip, or nulla null reference (Nothing in Visual Basic) if none.
Public method GetEnabledCount The client returns a count of the enabled cells in this swatch control.
Public method GetMetrics Fills the struct with creation data for their swatch control.
Public method GetSelection Returns initial/current selection; or the value (-1, -1) if no selection.
Public method RealizePalette Realizes the specified palette and returns the old palette.
Public method RenderCell Renders the cell with the specified criteria, or returns an MSO control ID for one of Microsoft Office's standard controls.
Public method SelectCell Tells the client that swatch (x, y) was selected.
Public method SelectionUpdate Notifies the client of the current/updated selection.

Top

See Also

Reference

IVsSwatchClient Interface

Microsoft.VisualStudio.Shell.Interop Namespace