本文整理匯總了C#中System.Windows.Forms.RibbonButton.SetOwner方法的典型用法代碼示例。如果您正苦於以下問題:C# RibbonButton.SetOwner方法的具體用法?C# RibbonButton.SetOwner怎麽用?C# RibbonButton.SetOwner使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Forms.RibbonButton
的用法示例。
在下文中一共展示了RibbonButton.SetOwner方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Add
/// <summary>
/// Adds the specified item to the collection
/// </summary>
public new void Add(RibbonButton item)
{
CheckRestrictions(item as RibbonButton);
item.SetOwner(Owner);
item.SetOwnerPanel(OwnerPanel);
item.SetOwnerTab(OwnerTab);
base.Add(item);
}
示例2: RibbonQuickAccessToolbar
internal RibbonQuickAccessToolbar(Ribbon ownerRibbon)
{
if (ownerRibbon == null) throw new ArgumentNullException("ownerRibbon");
SetOwner(ownerRibbon);
_dropDownButton = new RibbonButton();
_dropDownButton.SetOwner(ownerRibbon);
_dropDownButton.SmallImage = CreateDropDownButtonImage();
_margin = new Padding(9);
_padding = new Padding(3, 0, 0, 0);
_items = new RibbonQuickAccessToolbarItemCollection(this);
_sensor = new RibbonMouseSensor(ownerRibbon, ownerRibbon, Items);
_DropDownButtonVisible = true;
}