2 writes to owner
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (2)
48
this.
owner
= owner;
63
this.
owner
= owner;
29 references to owner
System.Windows.Forms (29)
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (29)
111
ToolStripItem item =
owner
.CreateDefaultItem(text,image,onClick);
125
if (itemsCollection &&
owner
!= null) {
126
owner
.OnItemAddedInternal(value);
127
owner
.OnItemAdded(new ToolStripItemEventArgs(value));
147
using (new LayoutTransaction(this.
owner
, this.
owner
, PropertyNames.Items)) {
168
using (new LayoutTransaction(this.
owner
, this.
owner
, PropertyNames.Items)) {
199
if (
owner
!= null && !
owner
.IsDisposingItems) {
200
owner
.SuspendLayout();
201
overflow =
owner
.GetOverflow();
215
if (
owner
!= null && !
owner
.IsDisposingItems) {
216
owner
.ResumeLayout();
238
ToolStripDropDown dropDown =
owner
as ToolStripDropDown;
363
if (itemsCollection &&
owner
!= null) {
364
if (
owner
.IsHandleCreated){
365
LayoutTransaction.DoLayout(
owner
, value, PropertyNames.Parent);
369
CommonProperties.xClearPreferredSizeCache(
owner
);
371
owner
.OnItemAddedInternal(value);
372
owner
.OnItemAdded(new ToolStripItemEventArgs(value));
433
if (
owner
!= null) {
434
owner
.OnItemRemovedInternal(item);
436
if (!
owner
.IsDisposingItems) {
438
owner
.OnItemRemoved(e);
444
if (parent != null && parent !=
owner
) {
528
if ((value.ParentInternal ==
owner
) && (index > indexOfItem)) {
546
item.SetOwner(
owner
);