|
| TalMap SDK Libary Reference |
| XIndexMap::SetIndexMapSize |
| 넓이 값과 높이 값으로 Index Map 의 크기를 설정합니다. |
|
|
|
|
Parameters
|
|
Return Value
|
|
Remarks
| |
SetIndexMapSize 는 XIndexMap 의 Method로 제공됩니다.
사용자는 이 메소드를 이용하여 넓이 값과 높이 값으로 인덱스 맵의 크기를 설정할 수 있습니다.
|
|
|
|
Example
| |
|
|
var ctrl = m_Map.GetCtrlMan();
var ctrlstate = ctrl.GetControlState();
var Left = 200;
var Top = 200;
var size = ctrlstate.GetSizeDP();
var indexmap = ctrl.GetIndexMap();
if (!indexmap.IsIndexMapVisible()) {
if (indexmap.GetIndexMapLeft() == -1000 || indexmap.GetIndexMapTop() == -1000) {
indexmap.SetIndexMapLeft(size._CX - indexmap.GetIndexMapWidth() - 10);
indexmap.SetIndexMapTop(10);
}
if (indexmap.IsMinimized()) indexmap.SetNormal();
indexmap.ShowIndexMap();
indexmap.SetIndexMapLeft(Left);
indexmap.SetIndexMapTop(Top);
indexmap.SetIndexMapSize(160,160);
}
|
|
|
|
CXControlState ctrlstate = ctrlman.GetControlState();
CXSize size = ctrlstate.GetSizeDP();
int height = 160;
CXIndexMap indexmap = ctrlman.GetIndexMap();
if(!indexmap.IsIndexMapVisible()) {
if(indexmap.GetIndexMapLeft() == -1000 || indexmap.GetIndexMapTop() == -1000) {
indexmap.SetIndexMapLeft(size.GetCX() - indexmap.GetIndexMapWidth() - 10);
indexmap.SetIndexMapTop(10);
}
if(indexmap.IsMinimized()) indexmap.SetNormal();
indexmap.ShowIndexMap();
indexmap.SetIndexMapTop(height);
indexmap.SetIndexMapLeft(0);
indexmap.SetIndexMapSize(160,160);
}
|
|
|
|
See Also
|