Search Results for

    Show / Hide Table of Contents

    Class MinorTic

    Class that holds the specific properties for the minor tics.

    Inheritance
    Object
    MinorTic
    MajorTic
    Implements
    ICloneable
    ISerializable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    [Serializable]
    public class MinorTic : ICloneable, ISerializable

    Constructors

    | Improve this Doc View Source

    MinorTic()

    Default Constructor

    Declaration
    public MinorTic()
    | Improve this Doc View Source

    MinorTic(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected MinorTic(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    | Improve this Doc View Source

    MinorTic(MinorTic)

    Copy constructor.

    Declaration
    public MinorTic(MinorTic rhs)
    Parameters
    Type Name Description
    MinorTic rhs

    The MinorTic that is to be copied.

    Fields

    | Improve this Doc View Source

    schema

    Current schema value that defines the version of the serialized file

    Declaration
    public const int schema = 10
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    Color

    The color to use for drawing the tics of this class instance

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    The color is defined using the Color class

    See Also
    Color
    IsOutside
    IsVisible
    | Improve this Doc View Source

    IsAllTics

    This is convenience property sets the status of all the different tic properties in this instance to the same value. true to activate all tics, false to clear all tics.

    Declaration
    public bool IsAllTics { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    This setting does not persist. That is, you can clear all the tics with IsAllTics = false, then activate them individually (example: IsOutside = true).

    See Also
    IsOutside
    IsInside
    IsOpposite
    IsCrossInside
    IsCrossOutside
    | Improve this Doc View Source

    IsCrossInside

    Gets or sets the display mode for the Axis major inside "cross" tic marks.

    Declaration
    public bool IsCrossInside { get; set; }
    Property Value
    Type Description
    Boolean

    true to show the major cross tic marks, false otherwise

    Remarks

    The "cross" tics are a special, additional set of tic marks that always appear on the actual axis, even if it has been shifted due to the Cross setting. The other tic marks are always fixed to the edges of the Rect. The cross tics are normally not displayed, since, if CrossAuto is true, they will exactly overlay the "normal" and "inside" tics. If CrossAuto is false, then you will most likely want to enable the cross tics. The major tic spacing is controlled by MajorStep.

    | Improve this Doc View Source

    IsCrossOutside

    Gets or sets the display mode for the Axis major outside "cross" tic marks.

    Declaration
    public bool IsCrossOutside { get; set; }
    Property Value
    Type Description
    Boolean

    true to show the major cross tic marks, false otherwise

    Remarks

    The "cross" tics are a special, additional set of tic marks that always appear on the actual axis, even if it has been shifted due to the Cross setting. The other tic marks are always fixed to the edges of the Rect. The cross tics are normally not displayed, since, if CrossAuto is true, they will exactly overlay the "normal" and "inside" tics. If CrossAuto is false, then you will most likely want to enable the cross tics. The major tic spacing is controlled by MajorStep.

    | Improve this Doc View Source

    IsInside

    Gets or sets a property that determines whether or not the major inside tic marks are shown.

    Declaration
    public bool IsInside { get; set; }
    Property Value
    Type Description
    Boolean

    true to show the major inside tic marks, false otherwise

    Remarks

    These are the tic marks on the inside of the Axis border. The major tic spacing is controlled by MajorStep.

    See Also
    IsInside
    IsOutside
    IsInside
    IsOpposite
    IsCrossInside
    IsCrossOutside
    | Improve this Doc View Source

    IsOpposite

    Gets or sets a property that determines whether or not the major opposite tic marks are shown.

    Declaration
    public bool IsOpposite { get; set; }
    Property Value
    Type Description
    Boolean

    true to show the major opposite tic marks, false otherwise

    Remarks

    These are the tic marks on the inside of the Axis border on the opposite side from the axis. The major tic spacing is controlled by MajorStep.

    See Also
    IsOpposite
    IsOutside
    IsInside
    IsOpposite
    IsCrossInside
    IsCrossOutside
    | Improve this Doc View Source

    IsOutside

    Gets or sets a property that determines whether or not the minor outside tic marks are shown.

    Declaration
    public bool IsOutside { get; set; }
    Property Value
    Type Description
    Boolean

    true to show the minor outside tic marks, false otherwise

    Remarks

    These are the tic marks on the outside of the Axis border. The minor tic spacing is controlled by MinorStep.

    See Also
    IsOutside
    IsOutside
    IsInside
    IsOpposite
    IsCrossInside
    IsCrossOutside
    | Improve this Doc View Source

    PenWidth

    Gets or sets the pen width to be used when drawing the tic marks for this Axis

    Declaration
    public float PenWidth { get; set; }
    Property Value
    Type Description
    Single

    The pen width is defined in points (1/72 inch)

    See Also
    PenWidth
    IsOutside
    Color
    | Improve this Doc View Source

    Size

    The length of the major tic marks.

    Declaration
    public float Size { get; set; }
    Property Value
    Type Description
    Single

    The tic size is measured in points (1/72 inch)

    Remarks

    This length will be scaled according to the CalcScaleFactor() for the GraphPane

    See Also
    Size
    IsOutside
    IsVisible
    Color

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public MinorTic Clone()
    Returns
    Type Description
    MinorTic

    A new, independent copy of this class

    | Improve this Doc View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a SerializationInfo instance with the data needed to serialize the target object

    Declaration
    [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
    public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    | Improve this Doc View Source

    ScaledTic(Single)

    Calculate the scaled tic size for this Axis

    Declaration
    public float ScaledTic(float scaleFactor)
    Parameters
    Type Name Description
    Single scaleFactor

    The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.

    Returns
    Type Description
    Single

    The scaled tic size, in points (1/72 inch)

    See Also
    Size
    FontSpec
    CalcScaleFactor()

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICloneable.Clone()

    Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    Object

    A deep copy of this object

    Implements

    System.ICloneable
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX