Click or drag to resize

PlotRange Class

PlotRange represents a range of plotting points from index lowerBound to (upperBound-1) I use a class instead of a struct because it is intended to use with ArrayList.
Inheritance Hierarchy
SystemObject
  Altaxo.Graph.Plot.DataPlotRange

Namespace: Altaxo.Graph.Plot.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public class PlotRange : IPlotRange

The PlotRange type exposes the following members.

Constructors
 NameDescription
Public methodPlotRange(PlotRange)Initializes a new instance of the PlotRange class
Public methodPlotRange(Int32, Int32)Initializes a new instance of the PlotRange class
Public methodPlotRange(Int32, Int32, Int32) Initializes a new instance of the PlotRange class.
Top
Properties
 NameDescription
Public propertyLength Number of points in this plot range.
Public propertyLowerBound First index of a contiguous plot range in the plot point array (i.e. in the array of processed plot point data, not in the original data column). To calculate from which row index in the original data column this comes from, add to this value OffsetToOriginal.
Public propertyCode exampleOffsetToOriginal This gives the offset of an index in the plot point array to the original data row index.
Public propertyOriginalFirstPoint Row index of the first point of this plot range in the original data column.
Public propertyOriginalLastPoint Row index of the last point of this plot range in the original data column.
Public propertyUpperBound Last index + 1 of a contiguous plot range in the plot point array (i.e. in the array of processed plot point data, not in the original data column). To calculate from which row index in the original data column this comes from, add to this value OffsetToOriginal.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetOriginalRowIndexFromPlotPointIndex 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOriginalRowIndices Enumerates through the original row indices in this plot range.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWithUpperBoundExtendedBy Extends the upper boundary by the number of points provided in the parameter.
Public methodWithUpperBoundShortenedBy Shortens the upper boundary by the number of points provided in the parameter.
Top
Remarks
For use in a list, the UpperBound property is somewhat useless, since it should be equal to the LowerBound property of the next item.
See Also