textsymbol,label

  graphic graphicsPointText = new graphic();

 graphicsPointText.Geometry = mapPoint;
                        TextSymbol graphicsPointTextSym = new TextSymbol
                        {
                            FontFamily = new FontFamily("微软雅黑, 宋体"),
                            FontSize = 12,
                            Foreground = new SolidColorBrush(Colors.Blue),
                            Text = numFlag.ToString().Trim()
                        };
                        graphicsPointText.Symbol = graphicsPointTextSym;

原文地址:https://www.cnblogs.com/hl3292/p/2145972.html