Click or drag to resize

VIZCore3DControlMouseControl Property

Mouse Control

Namespace:  VIZCore3D.NET
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public MouseControls MouseControl { get; set; }

Property Value

Type: MouseControls
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    // Add Mouse Operation
    vizcore3d.MouseControl = vizcore3d.MouseControl | VIZCore3D.NET.MouseControls.Move;
    vizcore3d.MouseControl = vizcore3d.MouseControl | VIZCore3D.NET.MouseControls.Wheel;

    // Remove Mouse Operation
    vizcore3d.MouseControl = vizcore3d.MouseControl & ~VIZCore3D.NET.MouseControls.Move;
    vizcore3d.MouseControl = vizcore3d.MouseControl & ~VIZCore3D.NET.MouseControls.Wheel;

    // Has Flag
    if (vizcore3d.MouseControl.HasFlag(VIZCore3D.NET.MouseControls.Move) == true)
        vizcore3d.MouseControl = vizcore3d.MouseControl & ~VIZCore3D.NET.MouseControls.Move;
    else
        vizcore3d.MouseControl = vizcore3d.MouseControl | VIZCore3D.NET.MouseControls.Move;
}
See Also