Udostępnij za pośrednictwem


TableEntryHandleExtensions.TryCreateImageContent Metoda

Definicja

Pomocnik umożliwiający pobranie zawartości obrazu (jeśli istnieje) dla określonej kolumny & wpisu.

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

Wpis.

column
ITableColumnDefinition

Kolumna.

singleColumnView
Boolean

Bez względu na to, czy jest to widok z jedną kolumną.

content
ImageMoniker

Zawartość.

Zwraca

Zwraca wartość Boolean.

Uwagi

Ten kod najpierw sprawdza, czy wpis dostarcza te dane bezpośrednio, a jeśli nie, używa konwertera skojarzonego z kolumną.

Dotyczy