Nevron .NET Vision
Nevron.GraphicsCore Namespace / NTextStyle Class / TextOverlapsImage Property
Example


In This Topic
    TextOverlapsImage Property
    In This Topic
    Controls whether or not the text should use the Z position of the base point.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("Controls whether or not the text should use the Z position of the base point.")>
    <System.ComponentModel.DefaultValueAttribute(True)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property TextOverlapsImage As System.Boolean
    'Usage
     
    
    Dim instance As NTextStyle
    Dim value As System.Boolean
     
    instance.TextOverlapsImage = value
     
    value = instance.TextOverlapsImage
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("Controls whether or not the text should use the Z position of the base point.")]
    [System.ComponentModel.DefaultValue(true)]
    [System.Xml.Serialization.XmlAttribute()]
    public System.bool TextOverlapsImage {get; set;}
    Remarks
    When Nevron Chart for .NET renders objects with associated texts like bars, axes etc. it generates a base point with a Z value equal to the object. You can instruct the NText object whether to render or not at the same Z value as the base point. When set to true the text will always overlap the chart.
    Example
    The following example instructs the bar labels to use the Z value of the bar they are attached to. This is why these objects will disappear when overlapped by a chart element closer to the viewer.
    Dim chart As NChart =  NChartControl.Charts.GetAt(0) 
    Dim bar As NBarSeries = CType(chart.Series.Add(SeriesType.Bar), NBarSeries)
                
    bar.Add(10, "Apples")
    bar.Add(20, "Oranges")
                
    bar.Appearance.LineMode = AppearanceLineMode.Series
    bar.DataLabels.Text.TextOverlapsImage = False
    NChart chart = NChartControl.Charts.GetAt(0);
    NBarSeries bar = (NBarSeries)chart.Series.Add(SeriesType.Bar);
    			
    bar.Add(10, "Apples");
    bar.Add(20, "Oranges");
                
    bar.Appearance.LineMode = AppearanceLineMode.Series;
    bar.DataLabels.Text.TextOverlapsImage = false;
    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