TableEntryHandleExtensions.TryCreateImageContent 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取图像内容的帮助程序 (特定条目 & 列的任何) 。
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。
注解
此代码首先检查条目是否直接提供该数据,如果没有,则使用与列关联的转换器。