次の方法で共有


ExtensionMethods.IsTextTrimmed(TextBlock) Method

Definition

Returns whether the text of the TextBlock is trimmed Unfortunately the TextBlock control does not have a property to tell when ellipsis are displayed So we have to calculate outselves if the text fits in the text block element

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsTextTrimmed(System::Windows::Controls::TextBlock ^ textBlock);
public static bool IsTextTrimmed (this System.Windows.Controls.TextBlock textBlock);
static member IsTextTrimmed : System.Windows.Controls.TextBlock -> bool
<Extension()>
Public Function IsTextTrimmed (textBlock As TextBlock) As Boolean

Parameters

textBlock
TextBlock

Returns

Applies to