共用方式為


TableEntryHandleExtensions.TryCreateStringContent 方法

定義

如果特定專案 & 數據行有任何) ,協助程式取得字串內容 (。

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

參數

entry
ITableEntryHandle

項目。

column
ITableColumnDefinition

資料行。

truncatedText
Boolean

截斷的文字。

singleColumnView
Boolean

檢視。

content
String

內容。

傳回

傳回 Boolean

備註

此程式代碼會先檢查專案是否直接提供該數據,如果不是,則會使用與數據行相關聯的轉換器。

適用於