Share via


TableEntryHandleExtensions.TryCreateImageContent Method

Definition

Helper to get the image content (if any) for a particular entry & column.

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryCreateImageContent(Microsoft::VisualStudio::Shell::TableControl::ITableEntryHandle ^ entry, Microsoft::VisualStudio::Shell::TableControl::ITableColumnDefinition ^ column, bool singleColumnView, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Imaging::Interop::ImageMoniker % content);
public static bool TryCreateImageContent (this Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle entry, Microsoft.VisualStudio.Shell.TableControl.ITableColumnDefinition column, bool singleColumnView, out Microsoft.VisualStudio.Imaging.Interop.ImageMoniker content);
static member TryCreateImageContent : Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle * Microsoft.VisualStudio.Shell.TableControl.ITableColumnDefinition * bool * ImageMoniker -> bool
<Extension()>
Public Function TryCreateImageContent (entry As ITableEntryHandle, column As ITableColumnDefinition, singleColumnView As Boolean, ByRef content As ImageMoniker) As Boolean

Parameters

entry
ITableEntryHandle

The entry.

column
ITableColumnDefinition

The column.

singleColumnView
Boolean

Whether or not it’s a single column view.

content
ImageMoniker

The content.

Returns

Returns Boolean.

Remarks

This code first checks to see whether the entry provides that data directly and, if not, uses the converter associated with the column.

Applies to