📄 basereportobject.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.2032
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using System;
using System.Xml.Serialization;
using System.ComponentModel;
using System.Drawing;
/// <summary>
/// This is the BaseClass for <see cref="ReportSection"></see>
/// and <see cref="ReportItem"></see>
/// </summary>
/// <remarks>
/// created by - Forstmeier Peter
/// created on - 18.08.2005 13:59:11
/// </remarks>
namespace SharpReportCore {
public class BaseReportObject : ISectionRenderer,IPropertyChange {
private string name;
private object parent = null;
private bool visible = true;
private bool canGrow = false;
private bool canShrink = false;
private bool pageBreakBefore = false;
private bool pageBreakAfter = false;
private bool suspend = true;
private Size size;
private Point location;
private Color backColor;
private int sectionOffset = 0;
private int sectionMargin = 0;
public event BeforePrintEventHandler BeforePrint;
public event AfterPrintEventHandler AfterPrint;
#region SharpReportCore.IPropertyChange interface implementation
public event PropertyChangeEventHandler PropertyChange;
#endregion
public BaseReportObject() {
suspend = false;
}
protected void NotifyPropertyChanged(string property,bool updateControl) {
if (!suspend) {
if (this.PropertyChange != null) {
this.PropertyChange(this,new PropertyChangeEventArgs (property,updateControl));
}
}
}
public void SuspendLayout () {
suspend = true;
}
public void ResumeLayout () {
suspend = false;
}
public virtual bool Visible {
get {
return visible;
}
set {
visible = value;
}
}
public virtual bool CanGrow {
get {
return canGrow;
}
set {
canGrow = value;
}
}
public virtual bool CanShrink {
get {
return canShrink;
}
set {
canShrink = value;
}
}
[XmlIgnoreAttribute]
[Browsable(false)]
public bool Suspend {
get {
return suspend;
}
}
public virtual string Name {
get {
return name;
}
set {
name = value;
}
}
public virtual bool PageBreakAfter {
get {
return pageBreakAfter;
}
set {
pageBreakAfter = value;
}
}
public virtual bool PageBreakBefore {
get {
return pageBreakBefore;
}
set {
pageBreakBefore = value;
}
}
[Browsable(false)]
[XmlIgnoreAttribute]
public virtual object Parent {
get {
return parent;
}
set {
parent = value;
}
}
[XmlIgnoreAttribute]
[Browsable(false)]
public virtual int SectionMargin {
get {
return sectionMargin;
}
set {
sectionMargin = value;
}
}
[XmlIgnoreAttribute]
[Browsable(false)]
public virtual int SectionOffset {
get {
return sectionOffset;
}
set {
sectionOffset = value;
}
}
public virtual Size Size {
get {
return size;
}
set {
size = value;
NotifyPropertyChanged ("Size",true);
}
}
public virtual Point Location {
get {
return location;
}
set {
location = value;
NotifyPropertyChanged ("Location",true);
}
}
public virtual Color BackColor {
get {
return backColor;
}
set {
backColor = value;
NotifyPropertyChanged ("BackColor",true);
}
}
public void OnAfterPrint (PointF afterPrint) {
if (this.AfterPrint != null) {
AfterPrintEventArgs rea = new AfterPrintEventArgs (afterPrint);
AfterPrint(this, rea);
}
}
public void OnBeforePrint () {
if (this.BeforePrint != null) {
BeforePrint (this,EventArgs.Empty);
}
}
#region SharpReportCore.IBaseRenderer interface implementation
public virtual void Render(ReportPageEventArgs rpea) {
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -