MouseControl
public MouseControls MouseControl { get; set; }
Mouse Control
Returns
| Type | Description |
|---|---|
| MouseControls |
Examples
// 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;
}