|
| TalMap SDK Libary Reference |
| XIndexMap::SetIndexMapTop |
| 인덱스 맵의 좌상단 Y 좌표 값을 설정합니다. |
|
|
|
|
Parameters
|
|
Return Value
|
|
Remarks
| |
SetIndexMapTop 는 XIndexMap 의 Method로 제공됩니다.
사용자는 이 메소드를 이용하여 인덱스 맵의 좌상단 Y 좌표 값을 설정할 수 있습니다.
|
|
|
|
Example
| |
|
|
var ctrl = m_Map.GetCtrlMan();
var ctrlstate = ctrl.GetControlState();
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.SetIndexMapTop(Top);
indexmap.SetIndexMapLeft(0);
}
|
|
|
|
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);
}
|
|
|
|
See Also
|