Sdílet prostřednictvím


TableEntryHandleExtensions.TryCreateImageContent Metoda

Definice

Pomocná rutina k získání obsahu obrázku (pokud existuje) pro určitou položku & sloupci.

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

Parametry

entry
ITableEntryHandle

Položka.

column
ITableColumnDefinition

Sloupec.

singleColumnView
Boolean

Jestli se jedná o zobrazení s jedním sloupcem.

content
ImageMoniker

Obsah.

Návraty

Vrací objekt Boolean.

Poznámky

Tento kód nejprve zkontroluje, jestli položka poskytuje tato data přímo, a pokud ne, použije převaděč přidružený ke sloupci.

Platí pro