Gets or sets the
Thumb object for all
AnnEditDesigner derived classes.
Syntax
Visual Basic (Declaration) | |
---|
Public Property ControlPoint As Thumb |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AnnAutomationManager
Dim value As Thumb
instance.ControlPoint = value
value = instance.ControlPoint
|
C# | |
---|
public Thumb ControlPoint {get; set;} |
XAML Syntax | |
---|
For XAML information, see the System.Windows.Controls.Primitives.Thumb type. |
XAML Syntax | |
---|
For XAML information, see the System.Windows.Controls.Primitives.Thumb type. |
Return Value
The
Thumb object for all
AnnEditDesigner derived classes.
Example
Visual Basic | Copy Code |
---|
Private Sub AnnAutomationManager_ControlPoint(ByVal manager As AnnAutomationManager)
Dim cp As Thumb = New Thumb()
cp.BorderBrush = Brushes.Black
cp.BorderThickness = New Thickness(1.0)
cp.Background = New SolidColorBrush(Color.FromArgb(128, 255, 0, 0))
cp.Width = 12
cp.Height = 12
manager.ControlPoint = cp
End Sub |
C# | Copy Code |
---|
private void AnnAutomationManager_ControlPoint(AnnAutomationManager manager) { // Use a thumb with red brush (alpha = 128) Thumb cp = new Thumb(); cp.BorderBrush = Brushes.Black; cp.BorderThickness = new Thickness(1.0); cp.Background = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0)); cp.Width = cp.Height = 12; manager.ControlPoint = cp; // now, whenever you draw or select an object in this manager, this control point will be used } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also