// Create and define some other symbol simpleMarkerSymbol = GenerateMarkerSymbol(); simpleTextSymbol = GenerateSimpleTextSymbol(); PointClass offset = new PointClass() { X = 0, Y = 0 }; // Add the symbol to the tracker IGraphicTrackerSymbol gts = graphicTracker.CreateSymbol(simpleMarkerSymbol); int gID = graphicTracker.Add(offset, gts); // Associate the text symbol, and set the text graphicTracker.SetTextSymbol(gID, simpleTextSymbol); graphicTracker.SetLabel(gID, "Testing");
// Define text symbol ITextSymbol textSymbol = new TextSymbolClass() as ITextSymbol; textSymbol.Font = textFont; textSymbol.Size = 20.0; textSymbol.Color = new RgbColorClass() { RGB = 0xFF0000 }; textSymbol.Text = "12345"; // Add it to the tracker PointClass offset = new PointClass() { X = 0, Y = 0 }; IGraphicTrackerSymbol gt = graphicTracker.CreateSymbol(textSymbol as ISymbol, null); int gID = graphicTracker.Add(offset, gt);
Solved! Go to Solution.