본문으로 건너뛰기

Update

Overloads

NameDescription
Update(ShortcutFunctions function, Keys keyCode, bool ctrl, bool shift, bool alt)단축키 변경

Update(ShortcutFunctions function, Keys keyCode, bool ctrl, bool shift, bool alt)

public bool Update(ShortcutFunctions function, Keys keyCode, bool ctrl, bool shift, bool alt)

단축키 변경

Parameters

NameTypeDescription
functionShortcutFunctions기능 코드
keyCodeKeys단축키
ctrlboolCtrl 키 상태
shiftboolShift 키 상태
altboolAlt 키 상태

Returns

TypeDescription
bool갱신 결과

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
// 기존 단축키 설정 제거
vizcore3d.Shortcuts.Disable(Data.ShortcutFunctions.CONTROL_SELECT_REVIEW_DRAG);

// 신규 단축키 설정
bool result = vizcore3d.Shortcuts.Update(
Data.ShortcutFunctions.CONTROL_SELECT_REVIEW_DRAG
, Keys.X
, true
, true
, false
);

if (result == true)
{
MessageBox.Show("Shortcut Registered.", "VIZCore3D.NET", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("NG.", "VIZCore3D.NET", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}