Partager via


VSSWATCHMETRICS Structure

Contains metrics about a swatch control.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Public Structure VSSWATCHMETRICS
public struct VSSWATCHMETRICS
public value class VSSWATCHMETRICS
[<Sealed>]
type VSSWATCHMETRICS =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The VSSWATCHMETRICS type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Fields

  Name Description
Public field cColumns Number of columns; must be greater than or equal to 1.
Public field cRows Number of rows/lines; must be greater than or equal to 1.
Public field cxCell Width of each cell; 0 or -1 = current button width, -2 = default color cell width.
Public field cxCtrl Preferred width of whole control. Office will override if it is too small; use 0 if you don't care.
Public field cyCell Height of each cell; 0 or -1 = current button height, -2 = default color cell height.
Public field cyCtrl Preferred height of whole control; Office will override if it is too small; use 0 if you don't care.
Public field dxBetween Pixel width between cells; 0 or -1 = use default of 2 pixels.
Public field dyBetween Pixel height between cells; 0 or -1 = use default of 2 pixels.
Public field fPaletteSensitive true if the client image is sensitive to palette changes.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace