Xamarin.iOS Documentation | ComponentOne
C1.iOS.Grid Assembly / C1.iOS.Grid Namespace / GridBase Class / ShowMarquee Property
Example


In This Topic
    ShowMarquee Property
    In This Topic
    Gets or sets a value that indicates whether the grid shows an Excel-style marquee around the current selection.
    Syntax
    'Declaration
     
    
    <Foundation.ExportAttribute("ShowMarquee")>
    <BrowsableAttribute(True)>
    Public Property ShowMarquee As Boolean
    'Usage
     
    
    Dim instance As GridBase
    Dim value As Boolean
     
    instance.ShowMarquee = value
     
    value = instance.ShowMarquee
    [Foundation.Export("ShowMarquee")]
    [Browsable(true)]
    public bool ShowMarquee {get; set;}
    Remarks
    By default, the marquee is black and two pixels thick. You can customize the appearance of the marquee using the Marquee property.
    Example
    The code below shows how you can create a marquee with a thick rounded red border and semi-transparent red interior and use that to highlight the selection instead of the regular SelectionBackground and CursorBackground properties.
    // customize the marquee
    var m = _flex.Marquee;
    m.Stroke = new SolidColorBrush(Colors.Red);
    m.Fill = new SolidColorBrush(Color.FromArgb(0x20, 0xff, 0x80, 0x80));
    m.StrokeThickness = 4;
    m.RadiusX = 3;
    m.RadiusY = 3;
                
    // show the marquee
    _flex.ShowMarquee = true;
                
    // no need to highlight the selection/cursor
    _flex.SelectionBackground = null;
    _flex.CursorBackground = null;
    See Also