GrapeCity MultiRow Windows Forms Documentation
Ellipsis Property (PopupCell)
Example 


Gets or sets how to show an ellipsis when the width of the display text is greater than the cell's content width.
Syntax
<SRCategoryAttribute("Behavior")>
<EditorBrowsableAttribute()>
<SRDescriptionAttribute("Indicates how to show an ellipsis when the width of the display text is greater than the cell's content area width.")>
<DefaultValueAttribute()>
Public Property Ellipsis As MultiRowEllipsisMode
Dim instance As PopupCell
Dim value As MultiRowEllipsisMode
 
instance.Ellipsis = value
 
value = instance.Ellipsis
[SRCategory("Behavior")]
[EditorBrowsable()]
[SRDescription("Indicates how to show an ellipsis when the width of the display text is greater than the cell's content area width.")]
[DefaultValue()]
public MultiRowEllipsisMode Ellipsis {get; set;}

Property Value

One of the MultiRowEllipsisMode values. The default is MultiRowEllipsisMode.None.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not one of the MultiRowEllipsisMode values.
Remarks

Use this property with the EllipsisString property.

The ellipsis string cannot be displayed when some cell styles are used, such as CellStyle.Multiline, CellStyle.TextAngle, CellStyle.TextAdjustment, and CellStyle.LineAdjustment.
Example
The following code example shows how to customize a pop-up cell's behavior or appearance. This code example is part of a larger example provided for the PopupCell class.
PopupCell CreateCustomButtonAppearancePopupCell()
        {
            PopupCell popupCell1 = new PopupCell();

            popupCell1.ButtonForeColor = Color.Red;
            popupCell1.ButtonBackColor = Color.Yellow;
            popupCell1.ButtonFlatStyle = FlatStyle.Flat;
            popupCell1.ButtonFlatAppearance.MouseOverBackColor = Color.Orange;
            popupCell1.Ellipsis = MultiRowEllipsisMode.EllipsisEnd;
            
            popupCell1.Size = new Size(130, 21);

            // Show Font dialog to edit font.
            popupCell1.Popup = new FontDialog();
            popupCell1.PopupValueMember = "Font";

            return popupCell1;
        }
Private Function CreateCustomButtonAppearancePopupCell() As PopupCell
        Dim popupCell1 As New PopupCell()

        popupCell1.ButtonForeColor = Color.Red
        popupCell1.ButtonBackColor = Color.Yellow
        popupCell1.ButtonFlatStyle = FlatStyle.Flat
        popupCell1.ButtonFlatAppearance.MouseOverBackColor = Color.Orange
        popupCell1.Ellipsis = MultiRowEllipsisMode.EllipsisEnd

        popupCell1.Size = New Size(130, 21)

        ' Show Font dialog to edit font.
        popupCell1.Popup = New FontDialog()
        popupCell1.PopupValueMember = "Font"

        Return popupCell1
    End Function
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PopupCell Class
PopupCell Members
EllipsisString Property

 

 


Copyright © GrapeCity, inc. All rights reserved.