본문으로 건너뛰기

MouseControl

public MouseControls MouseControl { get; set; }

Mouse Control

Returns

TypeDescription
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;
}