Exemple #1
0
 /// <summary>
 /// Adds the contents of another <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> to the end of the collection.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> containing the objects to add to the collection.</param>
 /// <seealso cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection.Add'/>
 public void AddRange(BehaviorControlCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         this.Add(value[i]);
     }
 }
 public ElementControlBehavior(IHtmlEditorComponentContext editorContext)
     : base(editorContext)
 {
     controls = new BehaviorControlCollection(this);
     controls.ControlAdded   += new BehaviorControlCollection.ControlEvent(controls_ControlAdded);
     controls.ControlRemoved += new BehaviorControlCollection.ControlEvent(controls_ControlRemoved);
 }
 public ElementControlBehavior(IHtmlEditorComponentContext editorContext)
     : base(editorContext)
 {
     controls = new BehaviorControlCollection(this);
     controls.ControlAdded += new BehaviorControlCollection.ControlEvent(controls_ControlAdded);
     controls.ControlRemoved += new BehaviorControlCollection.ControlEvent(controls_ControlRemoved);
 }
 public BehaviorControl()
 {
     //	Instantiate the lightweight control collection.
     controls = new BehaviorControlCollection(this);
 }
Exemple #5
0
 public BehaviorControl()
 {
     //	Instantiate the lightweight control collection.
     controls = new BehaviorControlCollection(this);
 }
 /// <summary>
 /// Initializes a new instance of <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> based on another <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/>.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> from which the contents are copied.</param>
 public BehaviorControlCollection(BehaviorControlCollection value)
 {
     AddRange(value);
 }
 /// <summary>
 /// Initializes a new instance of the BehaviorControlEnumerator class.
 /// </summary>
 /// <param name="mappings"></param>
 public BehaviorControlEnumerator(BehaviorControlCollection mappings)
 {
     this.temp = mappings;
     this.baseEnumerator = temp.GetEnumerator();
 }
 /// <summary>
 /// Adds the contents of another <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> to the end of the collection.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> containing the objects to add to the collection.</param>
 /// <seealso cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection.Add'/>
 public void AddRange(BehaviorControlCollection value)
 {
     for (int i = 0; i < value.Count; i++)
         this.Add(value[i]);
 }
Exemple #9
0
 /// <summary>
 /// Initializes a new instance of <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> based on another <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/>.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> from which the contents are copied.</param>
 public BehaviorControlCollection(BehaviorControlCollection value)
 {
     AddRange(value);
 }
Exemple #10
0
 /// <summary>
 /// Initializes a new instance of the BehaviorControlEnumerator class.
 /// </summary>
 /// <param name="mappings"></param>
 public BehaviorControlEnumerator(BehaviorControlCollection mappings)
 {
     this.temp           = mappings;
     this.baseEnumerator = temp.GetEnumerator();
 }