I need to create a composite symbol based on bitmap and text, which should be in the lower right corner of the bitmap. When creating a symbol with standard text, the text is inserted into the center. How to put it in the lower right corner?
PictureMarkerSymbol _ps = new PictureMarkerSymbol(new Uri(pathStr));
var textsymbol = new TextSymbol()
{
HorizontalAlignment = Esri.ArcGISRuntime.Symbology.HorizontalAlignment.Right,
VerticalAlignment = Esri.ArcGISRuntime.Symbology.VerticalAlignment.Bottom,
Text = count.ToString(),
FontFamily = "Arial",
Size = 9,
Color = Colors.Red,
FontStyle = Esri.ArcGISRuntime.Symbology.FontStyle.Oblique
};
csymbol.Symbols.Add(_ps);
csymbol.Symbols.Add(textsymbol);
Symbol symbol = csymbol;
Solved! Go to Solution.
Hi Yuri,
You may use OffsetX/OffsetY within the TextSymbol constructor to position the text inside the bitmap.
Hope that helps.
Nagma
Hi Yuri,
You may use OffsetX/OffsetY within the TextSymbol constructor to position the text inside the bitmap.
Hope that helps.
Nagma
I already found this solution myself. Thank you.