Freigeben über


TableColumnDefinitionBase.CompareContent Method

Definition

Compare the sort order of two entries of the data in one column of two different entries.

public:
 virtual int CompareContent(Microsoft::VisualStudio::Shell::TableControl::ITableEntryHandle ^ leftEntry, Microsoft::VisualStudio::Shell::TableControl::ITableEntryHandle ^ rightEntry);
public:
 virtual int CompareContent(Microsoft::VisualStudio::Shell::TableControl::ITableEntryHandle ^ leftEntry, Microsoft::VisualStudio::Shell::TableControl::ITableEntryHandle ^ rightEntry);
 virtual int CompareContent(Microsoft::VisualStudio::Shell::TableControl::ITableEntryHandle const & leftEntry, Microsoft::VisualStudio::Shell::TableControl::ITableEntryHandle const & rightEntry);
public virtual int CompareContent (Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle leftEntry, Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle rightEntry);
abstract member CompareContent : Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle * Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle -> int
override this.CompareContent : Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle * Microsoft.VisualStudio.Shell.TableControl.ITableEntryHandle -> int
Public Overridable Function CompareContent (leftEntry As ITableEntryHandle, rightEntry As ITableEntryHandle) As Integer

Parameters

leftEntry
ITableEntryHandle

The left entry.

rightEntry
ITableEntryHandle

The right entry.

Returns

Returns Int32.

Implements

Remarks

The default comparisons does a TryGetValue(String, Object) using the column name as the key. If the left and right values are strings, then the strings are compared. If they are IComparables and the same underlying type, then CompareTo(Object) is used. Otherwise we get the string content for this column and compare those.

Applies to