共用方式為


CompletionPresenterStyle Class

Defines a set of properties that will be used to style the default completion presenter.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Language.Intellisense.CompletionPresenterStyle

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

Syntax

'宣告
Public Class CompletionPresenterStyle
public class CompletionPresenterStyle
public ref class CompletionPresenterStyle
type CompletionPresenterStyle =  class end
public class CompletionPresenterStyle

The CompletionPresenterStyle type exposes the following members.

Constructors

  Name Description
Public method CompletionPresenterStyle Initializes a new instance of CompletionPresenterStyle.

Top

Properties

  Name Description
Public property AreGradientsAllowed Determines whether or not ICompletionSession should use gradients.
Public property BackgroundBrush Gets a brush that is used to paint the background of the completion presenter.
Public property BorderBrush Gets a brush that is used to paint the borders in the completion presenter.
Public property CompletionTextRunProperties Gets the text run properties that are used to format the text of the individual completion items.
Public property SelectionBackgroundBrush Gets a brush that is used to paint the background of the selected completion item.
Public property SelectionBorderBrush Gets a brush that is used to paint the border rectangle around the selected completion item.
Public property SelectionTextRunProperties Gets text run properties that are used to paint the text of the selected completion item.
Public property TabItemHotBackgroundBrush Gets a brush that is used to paint the background of a completion tab item when the mouse is hovering over it.
Public property TabItemHotBorderBrush Gets a brush that is used to paint the border of a completion tab item when the mouse is hovering over it.
Public property TabItemHotTextRunProperties Gets the text run properties that are used to format the text of a completion tab item when the mouse is hovering over it.
Public property TabPanelBackgroundBrush Gets a brush that is used to paint the background of the completion tab panel.
Public property TooltipBackgroundBrush Gets a brush that is used to paint the background of the completion tooltip.
Public property TooltipBorderBrush Gets a brush that is used to paint the border around the completion tooltip.
Public property TooltipTextRunProperties Gets text run properties that are used to format the text in the completion tooltip.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

This is a MEF component part, and should be exported with the following attributes:

[Export(typeof(CompletionPresenterStyle))]
[ContentType(...)]
[Name(...)]
[Order(...)]

All exports of this component part should be ordered after the "default" completion presenter style. At a minimum, this means adding [Order(After="default")] to the export metadata.

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.Language.Intellisense Namespace