Esporta (0) Stampa
Espandi tutto
Questo argomento non è stato ancora valutato - Valuta questo argomento

FontsAndColorsCategory Class

Represents a fonts and colors category.

System.Object
  Microsoft.VisualStudio.Editor.FontsAndColorsCategory

Namespace:  Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
public class FontsAndColorsCategory

The FontsAndColorsCategory type exposes the following members.

  NameDescription
Public methodFontsAndColorsCategoryInitializes a new instance of FontsAndColorsCategory for the specified language service, font category, and color category.
Top
  NameDescription
Public propertyAppearanceCategoryGets the textual key that is used in the IEditorFormatMap and IClassificationFormatMap groupings of the editor.
Public propertyColorCategoryGets or sets the color category.
Public propertyFontCategoryGets or sets the font category.
Public propertyLanguageServiceGets the GUID of the language service.
Top
  NameDescription
Public methodEqualsDetermines whether two instances of this class are the same. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for this type. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetColorCategorySets GUID of the color category.
Public methodSetFontCategorySets the GUID of the font category.
Public methodSetLanguageServiceSets the GUID of the language service.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public operatorStatic memberEqualityDetermines whether two FontsAndColorsCategory objects are the same.
Public operatorStatic memberInequalityDetermines whether two FontsAndColorsCategory objects are different.
Top

Font and color categories are a way to group different editors into groups that share the same colors. Examples of this in Visual Studio are "Text Editor", "Output Window", etc. These show up in the Tools -> Options -> Fonts & Colors dialog in the "Show settings for" drop down. This is an immutable class.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Il documento è risultato utile?
(1500 caratteri rimanenti)
Grazie per i commenti inviati.
Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di MSDN. Se si sceglie di partecipare, quando si lascia il sito Web di MSDN verrà visualizzato il sondaggio in linea.

Si desidera partecipare?
Mostra:
© 2014 Microsoft. Tutti i diritti riservati.