Condividi tramite


InfoBarModel Constructors

Definition

Overloads

InfoBarModel(IEnumerable<IVsInfoBarTextSpan>, ImageMoniker, Boolean)

Constructs an info bar with a message involving formatted text.

InfoBarModel(String, ImageMoniker, Boolean)

Constructs an info bar with a simple message.

InfoBarModel(IEnumerable<IVsInfoBarTextSpan>, IEnumerable<IVsInfoBarActionItem>, ImageMoniker, Boolean)

Constructs an info bar with a message involving formatted text and a separate panel of action buttons or links.

InfoBarModel(String, IEnumerable<IVsInfoBarActionItem>, ImageMoniker, Boolean)

Constructs an info bar with a simple message and a separate panel of action buttons or links.

InfoBarModel(IEnumerable<IVsInfoBarTextSpan>, ImageMoniker, Boolean)

Constructs an info bar with a message involving formatted text.

public InfoBarModel (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan> textSpans, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image = default, bool isCloseButtonVisible = true);
new Microsoft.VisualStudio.Shell.InfoBarModel : seq<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan> * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * bool -> Microsoft.VisualStudio.Shell.InfoBarModel
Public Sub New (textSpans As IEnumerable(Of IVsInfoBarTextSpan), Optional image As ImageMoniker = Nothing, Optional isCloseButtonVisible As Boolean = true)

Parameters

textSpans
IEnumerable<IVsInfoBarTextSpan>

The message to display.

image
ImageMoniker

The image to display next to the message.

isCloseButtonVisible
Boolean

True if the info bar can be closed by the user, otherwise false.

Applies to

InfoBarModel(String, ImageMoniker, Boolean)

Constructs an info bar with a simple message.

 InfoBarModel(std::wstring const & text, Microsoft::VisualStudio::Imaging::Interop::ImageMoniker image = null, bool isCloseButtonVisible = true);
public InfoBarModel (string text, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image = default, bool isCloseButtonVisible = true);
new Microsoft.VisualStudio.Shell.InfoBarModel : string * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * bool -> Microsoft.VisualStudio.Shell.InfoBarModel
Public Sub New (text As String, Optional image As ImageMoniker = Nothing, Optional isCloseButtonVisible As Boolean = true)

Parameters

text
String

The message to display.

image
ImageMoniker

The image to display next to the message.

isCloseButtonVisible
Boolean

True if the info bar can be closed by the user, otherwise false.

Applies to

InfoBarModel(IEnumerable<IVsInfoBarTextSpan>, IEnumerable<IVsInfoBarActionItem>, ImageMoniker, Boolean)

Constructs an info bar with a message involving formatted text and a separate panel of action buttons or links.

public InfoBarModel (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan> textSpans, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem> actionItems, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image = default, bool isCloseButtonVisible = true);
new Microsoft.VisualStudio.Shell.InfoBarModel : seq<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan> * seq<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem> * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * bool -> Microsoft.VisualStudio.Shell.InfoBarModel
Public Sub New (textSpans As IEnumerable(Of IVsInfoBarTextSpan), actionItems As IEnumerable(Of IVsInfoBarActionItem), Optional image As ImageMoniker = Nothing, Optional isCloseButtonVisible As Boolean = true)

Parameters

textSpans
IEnumerable<IVsInfoBarTextSpan>

The message to display.

actionItems
IEnumerable<IVsInfoBarActionItem>

The buttons or links to display on the panel, separate from the message.

image
ImageMoniker

The image to display next to the message.

isCloseButtonVisible
Boolean

True if the info bar can be closed by the user, otherwise false.

Applies to

InfoBarModel(String, IEnumerable<IVsInfoBarActionItem>, ImageMoniker, Boolean)

Constructs an info bar with a simple message and a separate panel of action buttons or links.

public InfoBarModel (string text, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem> actionItems, Microsoft.VisualStudio.Imaging.Interop.ImageMoniker image = default, bool isCloseButtonVisible = true);
new Microsoft.VisualStudio.Shell.InfoBarModel : string * seq<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem> * Microsoft.VisualStudio.Imaging.Interop.ImageMoniker * bool -> Microsoft.VisualStudio.Shell.InfoBarModel
Public Sub New (text As String, actionItems As IEnumerable(Of IVsInfoBarActionItem), Optional image As ImageMoniker = Nothing, Optional isCloseButtonVisible As Boolean = true)

Parameters

text
String

The message to display.

actionItems
IEnumerable<IVsInfoBarActionItem>

The buttons or links to display on the panel, separate from the message.

image
ImageMoniker

The image to display next to the message.

isCloseButtonVisible
Boolean

True if the info bar can be closed by the user, otherwise false.

Applies to