1、赋值
先上代码:
<span style="font-size:14px;"><span style="font-weight: normal;">IPictureMarkerSymbol pPicSym = new PictureMarkerSymbolClass();
pPicSym = (IPictureMarkerSymbol)pMarkerSym;
pPicSym.Size = 15;
pMarkerSym = (IMarkerSymbol)pPicSym;</span></span>
将Picture Size的大小修改为15,要先new一个IPictureMarkerSymbol,对其做设置,然后再将该新对象赋给要修改的对象。
先上代码:
<span style="font-size:14px;"><span style="font-weight: normal;">IPictureMarkerSymbol pPicSym = new PictureMarkerSymbolClass();
pPicSym = (IPictureMarkerSymbol)pMarkerSym;
pPicSym.Size = 15;
pMarkerSym = (IMarkerSymbol)pPicSym;</span></span>
将Picture Size的大小修改为15,要先new一个IPictureMarkerSymbol,对其做设置,然后再将该新对象赋给要修改的对象。