Skip to main content
Bar

RemoveBarItemLinkAction Class

Removes a specific link from the bar item link collection of a target object (a bar, menu, etc).

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public class RemoveBarItemLinkAction :
    UpdateBarItemLinkActionBase

#Remarks

This action removes a link from a target object's bar item link collection. The link can be addressed by its name (UpdateBarItemLinkActionBase.ItemLinkName) or index (BarItemLinkActionBase.ItemLinkIndex) in the collection.

The target object (a bar, menu, etc) is specified by the BarItemLinkActionBase.Target or BarItemLinkActionBase.TargetType property.


<!--Remove the first link in the barStatusBar bar-->
<dxb:BarManagerActionContainer>
    <dxb:RemoveBarItemLinkAction ItemLinkIndex="0" Target="barStatusBar"/>
<!--...-->

See Customizing Bars via Actions to learn more.

See Also