Update
Overloads
| Name | Description |
|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| function | ShortcutFunctions | 기능 코드 |
| keyCode | Keys | 단축키 |
| ctrl | bool | Ctrl 키 상태 |
| shift | bool | Shift 키 상태 |
| alt | bool | Alt 키 상태 |
Returns
| Type | Description |
|---|---|
| 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);
}
}