Class MinorTic
Class that holds the specific properties for the minor tics.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class MinorTic : ICloneable, ISerializable
Constructors
| Improve this Doc View SourceMinorTic()
Default Constructor
Declaration
public MinorTic()
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 |
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 Sourceschema
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 SourceColor
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
| Improve this Doc View SourceIsAllTics
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
| Improve this Doc View SourceIsCrossInside
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.
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.
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
| Improve this Doc View SourceIsOpposite
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
| Improve this Doc View SourceIsOutside
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
| Improve this Doc View SourcePenWidth
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
| Improve this Doc View SourceSize
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
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public MinorTic Clone()
Returns
Type | Description |
---|---|
MinorTic | A new, independent copy of this class |
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 |
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
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.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 |