zendgraph常用属性总结 转载

(1)zedgraph控件属性具体解释:

AxisChange()() ->> This performs an axis change command on the graphPane.
BeenDisposed ->> This checks if the control has been disposed. This is synonymous with the graph pane having been nulled or disposed. Therefore this is the same as ZedGraphControl.GraphPane == null.
BorderStyle ->> Gets or sets the border style of the tree view control. (Inherited from UserControl.)
ContextMenuBuilder ->> Subscribe to this event to be able to modify the ZedGraph context menu.
Copy(Boolean) ->> 将图像复制到剪贴板。
DoPageSetup()() ->> 打开打印设置对话框。
DoPrint()() ->> 打印图表。
DoPrintPreview()() ->> 打印预览。
EditButtons ->> Gets or sets a value that determines which Mouse button will be used to edit point data values
EditModifierKeys ->> Gets or sets a value that determines which modifier keys will be used to edit point data values
GetImage()() ->> 返回图表上的图像。
GraphPane ->> Gets or sets the GraphPane property for the control
IsAntiAlias ->> Gets or sets a value that determines if all drawing operations for this control will be forced to operate in Anti-alias mode. Note that if this value is set to "true", it overrides the setting for sub-objects. Otherwise, the sub-object settings (such as IsAntiAlias) will be honored.
IsAutoScrollRange ->> Gets or sets a value that controls whether or not the axis value range for the scroll bars will be set automatically.
IsEnableHEdit ->> Gets or sets a value that determines whether or not editing of point data is allowed in the horizontal direction.
IsEnableHPan ->> Gets or sets a value that determines whether or not panning is allowed for the control in the horizontal direction.
IsEnableHZoom ->> 是否允许横向缩放。
IsEnableSelection ->> Gets or sets a value that determines whether or not selection is allowed for the control.
IsEnableVEdit ->> Gets or sets a value that determines whether or not editing of point data is allowed in the vertical direction.
IsEnableVPan ->> Gets or sets a value that determines whether or not panning is allowed for the control in the vertical direction.
IsEnableVZoom ->> 是否允许纵向缩放。
IsEnableZoom ->> 是否允许缩放。
IsPrintFillPage ->> Gets or sets a value that determines whether or not the MasterPaneRectdimensions will be expanded to fill the available space when printing this ZedGraphControl.
IsPrintKeepAspectRatio ->> Gets or sets a value that determines whether or not the visible aspect ratio of the MasterPaneRectwill be preserved when printing this ZedGraphControl.
IsPrintScaleAll ->> Gets or sets a value that determines whether the settings of IsFontsScaled and IsPenWidthScaled will be overridden to true during printing operations.
IsScrolling ->> Returns true if the user is currently scrolling via the scrollbar, or false if no scrolling is taking place.
IsScrollY2 ->> Gets or sets a value that determines if the vertical scroll bar will affect the Y2 axis.
IsShowContextMenu ->> 是否显示右键菜单,如果指定了ContextMenuStrip会一直显示指定的ContextMenu。
IsShowCopyMessage ->> 复制图像时是否显示提示信息。
IsShowCursorValues ->> 鼠标在图表上移动时是否显示鼠标所在点对应的坐标值。默认为false
IsShowHScrollBar ->> 是否显示横向滚动条。
IsShowPointValues ->> 鼠标经过图表上的点时是否气泡显示该点所对应的值。默认为false
IsShowVScrollBar ->> 是否显示纵向滚动条。
IsSynchronizeXAxes ->> Gets or sets a value that determines if the XAxisScaleranges for all GraphPane objects in the MasterPane will be forced to match.
IsSynchronizeYAxes ->> Gets or sets a value that determines if the YAxisScaleranges for all GraphPane objects in the MasterPane will be forced to match.
IsZoomOnMouseCenter ->> 使用滚轮时以鼠标所在点进行缩放还是以图形中心进行缩放。
LinkButtons ->> Gets or sets a value that determines which Mouse button will be used to click on linkable objects
LinkEvent ->> Subscribe to this event to be able to respond to mouse clicks within linked objects.
LinkModifierKeys ->> Gets or sets a value that determines which modifier keys will be used to click on linkable objects
MasterPane ->> Gets or sets the MasterPane property for the control
MouseDownEvent ->> 代替MouseDown事件,有一个bool类型的返回值,代表是否响应该事件。
MouseUpEvent ->> 代替MouseUp事件,有一个bool类型的返回值,代表是否响应该事件。
PanButtons ->> Gets or sets a value that determines which mouse button will be used as a primary option to trigger a pan event.
PanButtons2 ->> Gets or sets a value that determines which mouse button will be used as the secondary option to trigger a pan event.
PanModifierKeys ->> Gets or sets a value that determines which modifier keys will be used as a primary option to trigger a pan event.
PanModifierKeys2 ->> Gets or sets a value that determines which modifier keys will be used as a secondary option to trigger a pan event.
PointDateFormat ->> Gets or sets the format for displaying tooltip values. This format is passed to ToString(String).
PointEditEvent ->> Subscribe to this event to receive notifcation and/or respond after a data point has been edited via IsEnableHEdit and IsEnableVEdit.
PointValueEvent ->> Subscribe to this event to provide custom formatting for the tooltips
PointValueFormat ->> Gets or sets the format for displaying tooltip values. This format is passed to ToString(String).
PrintDocument ->> Gets or sets the PrintDocumentinstance that is used for all of the context menu printing functions.
RestoreScale(GraphPane) ->> Handler for the "Set Scale to Default" context menu item. Sets the scale ranging to full auto mode for all axes.
SaveAs()() ->> 显示另存为对话框。
SaveAsBitmap()() ->> 显示另存为对话框,将图像另存为BMP文件。
SaveAsEmf()() ->> 显示另存为对话框,将图像另存为EMF文件。
SaveFileDialog ->> Gets or sets the SaveFileDialog instance that will be used by the "Save As..." context menu item.
ScrollDoneEvent ->> Subscribe to this event to be notified when the GraphPane is scrolled by the user using the scrollbars.
ScrollEvent ->> Subscribe to this event to be notified when the GraphPane is scrolled by the user using the scrollbars.
ScrollGrace ->> Set a "grace" value that leaves a buffer area around the data when IsAutoScrollRange is true.
ScrollMaxX ->> The maximum value for the X axis scroll range.
ScrollMaxY ->> The maximum value for the Y axis scroll range.
ScrollMaxY2 ->> The maximum value for the Y2 axis scroll range.
ScrollMinX ->> The minimum value for the X axis scroll range.
ScrollMinY ->> The minimum value for the Y axis scroll range.
ScrollMinY2 ->> The minimum value for the Y2 axis scroll range.
ScrollProgressEvent ->> Subscribe to this event to be notified when the GraphPane is scrolled by the user using the scrollbars.
SelectAppendModifierKeys ->> Gets or sets a value that determines which Modifier keys will be used to append a CurveItem to the selection list.
SelectButtons ->> Gets or sets a value that determines which Mouse button will be used to select CurveItem‘s.
Selection ->> Readonly property that gets the list of selected CurveItems
SelectModifierKeys ->> Gets or sets a value that determines which Modifier keys will be used to select CurveItem‘s.
SetScrollRangeFromData()() ->> Sets the value of the scroll range properties (see ScrollMinX, ScrollMaxX, YScrollRangeList, and Y2ScrollRangeList based on the actual range of the data for each corresponding Axis.
Y2ScrollRangeList ->> Access the ScrollRangeList for the Y2 axes.
YScrollRangeList ->> Access the ScrollRangeList for the Y axes.
ZoomButtons ->> Gets or sets a value that determines which mouse button will be used as a primary option to trigger a zoom event.
ZoomButtons2 ->> Gets or sets a value that determines which mouse button will be used as the secondary option to trigger a zoom event.
ZoomEvent ->> Subscribe to this event to be notified when the GraphPane is zoomed or panned by the user, either via a mouse drag operation or by the context menu commands.
ZoomModifierKeys ->> Gets or sets a value that determines which modifier keys will be used as a primary option to trigger a zoom event.
ZoomModifierKeys2 ->> Gets or sets a value that determines which modifier keys will be used as a secondary option to trigger a zoom event.
ZoomOut(GraphPane) ->> Handler for the "UnZoom/UnPan" context menu item. Restores the scale ranges to the values before the last zoom, pan, or scroll operation.
ZoomOutAll(GraphPane) ->> Handler for the "Undo All Zoom/Pan" context menu item. Restores the scale ranges to the values before all zoom and pan operations
ZoomPane(GraphPane, Double, PointF, Boolean) ->> Zoom a specified pane in or out according to the specified zoom fraction.
ZoomStepFraction ->> Gets or sets the step size fraction for zooming with the mouse wheel. A value of 0.1 will result in a 10% zoom step for each mouse wheel movement.
Axis Class 坐标轴信息
Member ->> Description
AxisGap ->> The size of the gap between multiple axes (see YAxisList and Y2AxisList).
CalcSpace(Graphics, GraphPane, Single, Single%) ->> Calculate the space required (pixels) for this Axis object.
Color ->> The color to use for drawing this Axis.
Cross ->> Gets or sets the scale value at which this axis should cross the "other" axis.
CrossAuto ->> Gets or sets a value that determines whether or not the Cross value is set automatically.
Draw(Graphics, GraphPane, Single, Single) ->> Do all rendering associated with this Axis to the specified Graphics device.
DrawMinorTics(Graphics, GraphPane, Double, Single, Single, Single) ->> Draw the minor tic marks as required for this Axis.
DrawTitle(Graphics, GraphPane, Single, Single) ->> Draw the title for this Axis.
GetCrossAxis(GraphPane) ->> Gets the "Cross" axis that corresponds to this axis.
GetObjectData(SerializationInfo, StreamingContext) ->> Populates a SerializationInfoinstance with the data needed to serialize the target object
IsAxisSegmentVisible ->> Gets or sets a property that determines whether or not the axis segment (the line that represents the axis itself) is drawn.
IsVisible ->> 是否可见。
MajorGrid ->> 见下面相关内容。
MajorTic ->> 见下面相关内容。
MinorGrid ->> 见下面相关内容。
MinorTic ->> 见下面相关内容。
MinSpace ->> Gets or sets the minimum axis space allocation.
ResetAutoScale(GraphPane, Graphics) ->> Restore the scale ranging to automatic mode, and recalculate the Axis scale ranges
Scale ->> Gets the Scale instance associated with this Axis.
ScaleFormatEvent ->> Subscribe to this event to handle custom formatting of the scale labels.
ScaleTitleEvent ->> Allow customization of the title when the scale is very large Subscribe to this event to handle custom formatting of the scale axis label.
SetMinSpaceBuffer(Graphics, GraphPane, Single, Boolean) ->> This method will set the MinSpace property for this Axis using the currently required space multiplied by a fraction ().
SetTransformMatrix(Graphics, GraphPane, Single) ->> Setup the Transform Matrix to handle drawing of this Axis
ICloneable..::Clone()()
Implement the ICloneableinterface in a typesafe manner by just calling the typed version of Clone.
Tag
A tag object for use by the user. This can be used to store additional information associated with the Axis. ZedGraph does not use this value for any purpose.
Title
Gets or sets the Label class that contains the title of this Axis.
Type
Gets or sets the AxisType for this Axis.
MinorGrid\MajorGrid 小刻度和大刻度的虚线的,显示在图表中用来分割图表的。默认IsVisible是False,看不到效果。
Member ->> Description
Color ->> 线的颜色。
DashOff ->> 点线中点与点之间的间隔。
DashOn ->> 点线中点的长度。
IsVisible ->> 是否可见。
PenWidth ->> 画笔宽度。
MinorTic\MajorTic 坐标轴上小刻度和大刻度的线的设置。
Member ->> Description
Color ->> 刻度线的颜色。
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.
IsCrossInside ->> Gets or sets the display mode for the Axis major inside "cross" tic marks.
IsCrossOutside ->> Gets or sets the display mode for the Axis major outside "cross" tic marks.
IsInside ->> 刻度条是否要显示到坐标轴的里边。
IsOpposite ->> 对面的坐标轴是否显示该刻度。
IsOutside ->> 刻度条是否要显示到坐标轴的外边。
PenWidth ->> 画笔宽度。
ScaledTic(Single) ->> Calculate the scaled tic size for this Axis
Size ->> 刻度线的长度。
Scale 刻度值相关
Member ->> Description
Align ->> Controls the alignment of the Axis tic labels.
AlignH ->> Controls the alignment of the Axis tic labels.
BaseTic ->> 第一个刻度从哪个值开始。
CalcMaxLabels(Graphics, GraphPane, Single) ->> Calculate the maximum number of labels that will fit on this axis.
DeLinearize(Double) ->> Convert a value from its linear equivalent to its actual scale value for this type of scale.
Exponent ->> Gets or sets the scale exponent value. This only applies to Exponent.
FontSpec ->> 刻度值的字体属性。
Format ->> 刻度值的格式化,string类型。
FormatAuto ->> 为true时自动设置Format属性,注意设置Format属性时该属性自动变为False
GetClusterWidth(GraphPane) ->> Determine the width, in pixel units, of each bar cluster including the cluster gaps and bar gaps.
GetClusterWidth(Double) ->> Calculates the cluster width, in pixels, by transforming the specified clusterScaleWidth.
IsAnyOrdinal ->> Gets a value that indicates if this Scale is of any of the ordinal types in the AxisType enumeration.
IsDate ->> 是否为日期。
IsExponent ->> True if this scale is Exponent, false otherwise.
IsLabelsInside ->> 坐标标签是不是在坐标轴的内部显示。
IsLog ->> True if this scale is Log, false otherwise.
IsOrdinal ->> True if this scale is Ordinal, false otherwise.
IsPreventLabelOverlap ->> Gets or sets a Boolean value that determines if ZedGraph will check to see if the Axis scale labels are close enough to overlap. If so, ZedGraph will adjust the step size to prevent overlap.
IsReverse ->> 刻度以0为中心翻转,图形也会随着翻转。
IsSkipCrossLabel ->> 不显示交叉点的标签。
IsSkipFirstLabel ->> 不显示第一个刻度标签。
IsSkipLastLabel ->> 不显示最后一个标签。
IsText ->> 返回刻度值是否是文本类型(只读)
IsUseTenPower ->> 是否为10次幂表示,scale为LogScale时有效。 The powers-of-ten notation is just the text "10" followed by a superscripted value indicating the magnitude. This mode is only valid for log scales. boolean value; true to show the title as a power of ten, false to show a regular numeric value (e.g., "0.01", "10", "1000")
IsVisible ->> 是否可见。
LabelGap ->> The gap between the scale labels and the tics.
Linearize(Double) ->> Convert a value to its linear equivalent for this type of scale.
LocalTransform(Double) ->> Transform the coordinate value from user coordinates (scale value) to graphics device coordinates (pixels).
Mag ->> 如果坐标轴的值要用10次幂显示,此值设置幂数。为0则不用10次幂
MagAuto ->> 是否自动套用10次幂方式显示
MajorStep ->> 大刻度步长值。
MajorStepAuto ->> 自动设置大刻度的步长值。
MajorUnit ->> Gets or sets the type of units used for the major step size (MajorStep).
MakeNewScale(Scale, AxisType) ->> A construction method that creates a new Scale object using the properties of an existing Scale object, but specifying a new AxisType.
Max ->> 默认显示的最大刻度值(缩放时会显示比它大的值)
MaxAuto ->> 自动设置最大刻度值。
MaxGrace ->> Gets or sets the "grace" value applied to the maximum data range.
Min ->> 默认显示的最小刻度值(缩放时会显示比它小的值)
MinAuto ->> 自动设置最小刻度值
MinGrace ->> Gets or sets the "grace" value applied to the minimum data range.
MinorStep ->> 小刻度的步长值。
MinorStepAuto ->> 是否自动设定小刻度的步长值。
MinorUnit ->> Gets or sets the type of units used for the minor step size (MinorStep).
PickScale(GraphPane, Graphics, Single) ->> Select a reasonable scale given a range of data values.
ReverseTransform(Single) ->> Reverse transform the user coordinates (scale value) given a graphics device coordinate (pixels).
SetupScaleData(GraphPane, Axis) ->> Setup some temporary transform values in preparation for rendering the Axis.
TextLabels ->> The text labels for this Axis.
Transform(Double) ->> Transform the coordinate value from user coordinates (scale value) to graphics device coordinates (pixels).
Transform(Boolean, Int32, Double) ->> Transform the coordinate value from user coordinates (scale value) to graphics device coordinates (pixels).
Type ->> 获取刻度类型(只读)。

(2)属性的调用方法

列举几个例子:

例一:调用复制图像的功能:zedGraphControl1.Copy(false);//false不显示复制完成的提示信息

例二:调用打印和预览图像功能:zedGraphControl1.DoPrint();//会弹出打印的对话框

zedGraphControl1.DoPrintPreview();//会弹出打印预览对话框

例三:调用禁止鼠标操作的功能: zedGraphControl1.ZoomButtons = MouseButtons.None;
                                                      zedGraphControl1.ZoomButtons2 = MouseButtons.None;

这两个键一起设置禁用全部,一个只能禁用部分功能,这个你可以试一下。

通过这几个例子相信你知道了调用一些方法的过程,希望对你有帮助。

时间: 2024-11-25 11:42:58

zendgraph常用属性总结 转载的相关文章

jQuery中一些不常用的方法属性【转载】

index(subject) 搜索与参数表示的对象匹配的元素,并返回相应元素的索引值.如果找到了匹配的元素,从0开始返回:如果没有找到匹配的元素,返回-1. data() data(elem):为页面对象添加唯一标识. data(name, value):将数据保存在元素的一个key里面.$("#box").data("shape","rectangle"). data(name):获取值.$("#box").data(&qu

DEV控件:gridControl常用属性设置【转载】

DEV控件:gridControl常用属性设置  1.隐藏最上面的GroupPanel   gridView1.OptionsView.ShowGroupPanel=false;  2.得到当前选定记录某字段的值   sValue=Table.Rows[gridView1.FocusedRowHandle][FieldName].ToString(); 3.数据只读   gridView1.OptionsBehavior.Editable=false; 4.不显示MasterDetailView

iPone应用开发 UIView 常用属性和方法

iPone应用程序开发 UIView常用属性和方法 常用属性 alpha 视图的透明度0.0f - 1.0f backgroundColor 视图的背景颜色 subviews 子视图的集合 hidden 视图是否隐藏 tag 视图的唯一标示符,是一个整形数据 superview 视图的父视图 multipleTouchEnabled 是否开启多点触控 userInteractionEnable 是否响应触摸事件 常用方法 - (void)removeFromSuperview; //从父视图中删

Android自学笔记之 Android五大布局之线性布局的功能、常用属性、用法

1.介绍: 线性布局管理器对存放其中的控件或布局采用线性方式管理 2.LinearLayout的常用属性 android:orientation = "vertical" -- 该属性决定它子类控件的排布方式(vertical:垂直:horizontal:水平) android:gravity = "center" -- 该属性决定它子类控件的xy的位置 常用属性值 center_vertical:垂直(Y轴)居中 center_horizontal:水平(X轴)居

介绍 Visifire 常用属性的设置

转载自http://www.cnblogs.com/xinyus/p/3422198.html 主要介绍 Visifire 常用属性的设置,用来生成不同样式的图例 设置Chart的属 //设置title的值 // 创建一个标题的对象 Title title = new Title(); // 设置标题的名称 title.Text = titleText; title.Padding = new Thickness(0, 10, 5, 0); // 向图标添加标题 chart.Titles.Add

DevExpress 行事历(Scheduler)的常用属性、事件和方法

一.TcxScheduler[TcxScheduler常用属性]1.Storage    - 邦定一个Storage为Scheduler显示提供数据 2.DateNavigate.ColCount  - 显示日历的列数3.DateNavigate.RowCount  - 显示日历的行数. ColCount x RowCount 即显示日历数4.DateNavigate.FirstWeekOfYear  - 一年的第1个星期5.DateNavigate.ShowWeekNumbers  - 是否显

window对象的常用属性,常用方法

window对象的常用属性: window.self 返回当前窗口的引用 window.parent   返回当前窗体的父窗体对象 window.top 返回当前窗体最顶层的父窗体的引用 window.outerwidth       返回当前窗口的外部宽 window.outerheight  返回当前窗口的外部高 window.innerwidth       返回当前窗口的可显示区域宽 window.innerheight  返回当前窗口的可显示区域高 提示:通过直接在Chrome控制台中

样式常用属性

笔记信息 复习: 表单作用: 从使用的角度上说:html提供了一个输入内容的途径. 从服务器的角度:提供了一个收集信息的途径. 以便客户端和服务器进行交互. 例:注册页面,上传文件. 3种常见元素:input select textarea Input的十种常见类型: text,password,radio,checkbox,submit,reset,button,image,hidden,file Radio中name应该保持相同,以确保在单选按钮中的元素完成互斥. Checkbox中name

UIScrollView 的常用属性和方法

1.继承关系:UIView -> UIResponder -> NSObject2.代理:UIScrollViewDelegate// *2.1 一但偏移量发生变化就会调用  - (void)scrollViewDidScroll:(UIScrollView *)scrollView;// *2.2 将要缩放时就return谁   2.2.1 由于要缩放内容,我们需要设置最大和最小的缩放比例    scrollView.minimumZoomScale = 1.0f;    scrollVie