Intersoft ClientUI Documentation
EllipsisText Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace : EllipsisText Class






Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.

Object Model

EllipsisText Class

Syntax

Visual Basic (Declaration) 
<TemplateVisualStateAttribute(Name="FadeOut", GroupName="FadingStates")>
<TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)>
<TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")>
<TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")>
Public Class EllipsisText 
   Inherits Intersoft.Client.Framework.ISControl
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As EllipsisText
C# 
[TemplateVisualStateAttribute(Name="FadeOut", GroupName="FadingStates")]
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")]
public class EllipsisText : Intersoft.Client.Framework.ISControl, IControlIFramework, ILicensing  
Delphi 
public class EllipsisText = class(Intersoft.Client.Framework.ISControl, IControl, IFramework, ILicensing)
JScript 
TemplateVisualStateAttribute(Name="FadeOut", GroupName="FadingStates")
TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)
TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)
StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)
TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")
TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")
public class EllipsisText extends Intersoft.Client.Framework.ISControl implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[TemplateVisualStateAttribute(Name="FadeOut", GroupName="FadingStates")]
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")]
public __gc class EllipsisText : public Intersoft.Client.Framework.ISControl, IControlIFramework, ILicensing  
C++/CLI 
[TemplateVisualStateAttribute(Name="FadeOut", GroupName="FadingStates")]
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="TooltipElement", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[StyleTypedPropertyAttribute(Property="TooltipStyle", StyleTargetType=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="PopupElement", Type=Intersoft.Client.UI.Controls.UXPopup)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Provides a lightweight control to automatically make ellipsis text when the text size is larger then its container. Furthermore you can enable / disable the custom tooltip that will appear when you mouse over an ellipsis text.")]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")]
public ref class EllipsisText : public Intersoft.Client.Framework.ISControl, IControlIFramework, ILicensing  

Example

You can customize the position of the trimmed text by setting EllipsisPosition property. The following example show how to customize the EllipsisPosition.

XAML Copy Code
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
    <Intersoft:EllipsisText Text="Some quite long text" EllipsisPosition="Right" Width="80"/>
    <Intersoft:EllipsisText Text="Some quite long text" EllipsisPosition="Left" Width="80"/>
    <Intersoft:EllipsisText Text="Some quite long text" EllipsisPosition="Center" Width="80"/>
</StackPanel>

Remarks

EllipsisText is a label control with automatic text trimming mechanism. When the text exceeds the control dimension, it will trim the text and automatically adds an ellipsis indicator to the text.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               Intersoft.Client.Framework.ISControl
                  Intersoft.Client.UI.Controls.EllipsisText

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.