本文整理汇总了VB.NET中System.Windows.Forms.Design.Behavior.Adorner.Enabled属性的典型用法代码示例。如果您正苦于以下问题:VB.NET Adorner.Enabled属性的具体用法?VB.NET Adorner.Enabled怎么用?VB.NET Adorner.Enabled使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。
在下文中一共展示了Adorner.Enabled属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1:
' The AnchorGlyph objects should mimic the resize glyphs;
' they should only be visible when the control is the
' primary selection. The adorner is enabled when the
' control is the primary selection and disabled when
' it is not.
Private Sub selectionService_SelectionChanged( _
ByVal sender As Object, _
ByVal e As EventArgs)
If Object.ReferenceEquals( _
Me.selectionService.PrimarySelection, _
Me.relatedControl) Then
Me.ComputeBounds()
Me.anchorAdorner.Enabled = True
Else
Me.anchorAdorner.Enabled = False
End If
End Sub