Sdílet prostřednictvím


TableEntryHandleExtensions.TryCreateStringContent Metoda

Definice

Pomocná rutina k získání obsahu řetězce (pokud existuje) pro konkrétní položku & sloupci.

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

Parametry

entry
ITableEntryHandle

Položka.

column
ITableColumnDefinition

Sloupec.

truncatedText
Boolean

Zkrácený text

singleColumnView
Boolean

Zobrazení.

content
String

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