点符号
线符号
面符号
指北针
核心代码
private void PreviewImage()
{
//Get and set the style class
ISymbologyStyleClass symbologyStyleClass = axSymbologyControl1.GetStyleClass(axSymbologyControl1.StyleClass);
//Preview an image of the symbol by gisoracle 注意符号类型
IStyleGalleryItem pStyleGalleryItem=axSymbologyControl1.GetStyleClass(esriSymbologyStyleClass.esriStyleClassMarkerSymbols).GetSelectedItem();
stdole.IPictureDisp picture = symbologyStyleClass.PreviewItem(pStyleGalleryItem, pictureBox1.Width, pictureBox1.Height);
System.Drawing.Image image = System.Drawing.Image.FromHbitmap(new System.IntPtr(picture.Handle));
pictureBox1.Image = image;
}
private void button3_Click_1(object sender, EventArgs e)
{
PreviewImage();
}