예제 #1
0
 internal SpreadChartElement(SpreadChartBase chart)
 {
     this._isAutomaticFill   = true;
     this._isAutomaticStroke = true;
     this._suspendState      = new WorkingState();
     this._chart             = chart;
 }
예제 #2
0
 /// <summary>
 /// Suspends the specified key.
 /// </summary>
 /// <param name="key">Key to suspend.</param>
 public void AddRef(string key)
 {
     if (this.states == null)
     {
         this.states = (IDictionary <string, WorkingState>) new Dictionary <string, WorkingState>();
     }
     if (this.states.ContainsKey(key))
     {
         this.states[key].AddRef();
     }
     else
     {
         WorkingState state2 = new WorkingState();
         state2.AddRef();
         this.states.Add(key, state2);
     }
 }
예제 #3
0
 public FloatingObjectStyleInfo(FloatingObjectStyleInfo format)
 {
     this._suspendState = new WorkingState();
     this._lineJoinType = PenLineJoin.Round;
     this.CopyFromInternal(format, true);
 }
예제 #4
0
 public FloatingObjectStyleInfo()
 {
     this._suspendState = new WorkingState();
     this._lineJoinType = PenLineJoin.Round;
     this.Init();
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Dt.Cells.Data.SpreadChartElement" /> class.
 /// </summary>
 public SpreadChartElement()
 {
     this._isAutomaticFill   = true;
     this._isAutomaticStroke = true;
     this._suspendState      = new WorkingState();
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Dt.Cells.Data.FloatingObject" /> class.
 /// </summary>
 /// <param name="name">The name of the floating object.</param>
 /// <param name="x">The x location of the floating object.</param>
 /// <param name="y">The y location of the floating object.</param>
 /// <param name="width">The width of the floating object.</param>
 /// <param name="height">The height of the floating object.</param>
 public FloatingObject(string name, double x, double y, double width, double height)
 {
     this._suspendState = new WorkingState();
     this.Init(name, x, y, width, height);
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Dt.Cells.Data.FloatingObject" /> class.
 /// </summary>
 /// <param name="name">The name of the floating object.</param>
 /// <param name="x">The x location of the floating object.</param>
 /// <param name="y">The y location of the floating object.</param>
 public FloatingObject(string name, double x, double y)
 {
     this._suspendState = new WorkingState();
     this.Init(name, x, y, 300.0, 300.0);
 }
예제 #8
0
 /// <summary>
 /// Creates a new notify collection.
 /// </summary>
 protected NotifyCollectionBase()
 {
     this.items        = new List <T>();
     this.suspendState = new WorkingState();
 }