Skip to content

ControlBase.IsHitTestVisible

property · ControlBase · cAlgo.API

DesktopCLICloud

Gets or sets a value that declares if the chart control instance is visible for the mouse hit testing. If set to false, then the control will not handle any mouse events.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public bool IsHitTestVisible {get; set;}
controlBase.IsHitTestVisible: bool

Returns bool

Examples

var watermark = new TextBlock { Text = "Demo account", FontSize = 40, Opacity = 0.2, IsHitTestVisible = false };
watermark.HorizontalAlignment = HorizontalAlignment.Center;
watermark.VerticalAlignment = VerticalAlignment.Center;
Chart.AddControl(watermark);
watermark = TextBlock()
watermark.Text = "Demo account"
watermark.FontSize = 40
watermark.Opacity = 0.2
watermark.IsHitTestVisible = False
watermark.HorizontalAlignment = HorizontalAlignment.Center
watermark.VerticalAlignment = VerticalAlignment.Center
api.Chart.AddControl(watermark)