TableEntryHandleExtensions.TryCreateImageContent 方法

定义

获取图像内容的帮助程序 (特定条目 & 列的任何) 。

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

参数

entry
ITableEntryHandle

项。

column
ITableColumnDefinition

列。

singleColumnView
Boolean

是否为单列视图。

content
ImageMoniker

内容。

返回

返回 Boolean

注解

此代码首先检查条目是否直接提供该数据,如果没有,则使用与列关联的转换器。

适用于