다음을 통해 공유


ContainerElement Constructors

Definition

Overloads

ContainerElement(ContainerElementStyle, IEnumerable<Object>)

Constructs a new container.

ContainerElement(ContainerElementStyle, Object[])

Constructs a new container.

ContainerElement(ContainerElementStyle, IEnumerable<Object>)

Constructs a new container.

public:
 ContainerElement(Microsoft::VisualStudio::Text::Adornments::ContainerElementStyle style, System::Collections::Generic::IEnumerable<System::Object ^> ^ elements);
public ContainerElement (Microsoft.VisualStudio.Text.Adornments.ContainerElementStyle style, System.Collections.Generic.IEnumerable<object> elements);
new Microsoft.VisualStudio.Text.Adornments.ContainerElement : Microsoft.VisualStudio.Text.Adornments.ContainerElementStyle * seq<obj> -> Microsoft.VisualStudio.Text.Adornments.ContainerElement
Public Sub New (style As ContainerElementStyle, elements As IEnumerable(Of Object))

Parameters

style
ContainerElementStyle

The layout style for the container.

elements
IEnumerable<Object>

The IViewElementFactoryService elements to display.

Exceptions

Thrown if elements is null.

Applies to

ContainerElement(ContainerElementStyle, Object[])

Constructs a new container.

public:
 ContainerElement(Microsoft::VisualStudio::Text::Adornments::ContainerElementStyle style, ... cli::array <System::Object ^> ^ elements);
public ContainerElement (Microsoft.VisualStudio.Text.Adornments.ContainerElementStyle style, params object[] elements);
new Microsoft.VisualStudio.Text.Adornments.ContainerElement : Microsoft.VisualStudio.Text.Adornments.ContainerElementStyle * obj[] -> Microsoft.VisualStudio.Text.Adornments.ContainerElement
Public Sub New (style As ContainerElementStyle, ParamArray elements As Object())

Parameters

style
ContainerElementStyle

The layout style for the container.

elements
Object[]

The elements to translate to UI and display via the IViewElementFactoryService.

Exceptions

Thrown if elements is null.

Applies to