public ValueTuple<string,string> GetDefaultFont()
Public Function GetDefaultFont() As ValueTuple(Of String,String)
Return Value
A tuple containing the font family name and style
public ValueTuple<string,string> GetDefaultFont()
Public Function GetDefaultFont() As ValueTuple(Of String,String)
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
QueuedTask.Run(() => { //Get the default font (see also 'SymbolFactory.Instance.DefaultFont') var def_font = ApplicationOptions.TextAndGraphicsElementsOptions.GetDefaultFont(); System.Diagnostics.Debug.WriteLine( $"\r\ndefault font: {def_font.fontName}, {def_font.styleName}"); //Get the default graphics element symbols - point, line, poly, text var ptSymbol = ApplicationOptions.TextAndGraphicsElementsOptions.GetDefaultPointSymbol(); var lineSymbol = ApplicationOptions.TextAndGraphicsElementsOptions.GetDefaultLineSymbol(); var polySymbol = ApplicationOptions.TextAndGraphicsElementsOptions.GetDefaultPolygonSymbol(); var textSymbol = ApplicationOptions.TextAndGraphicsElementsOptions.GetDefaultTextSymbol(); });
Target Platforms: Windows 11, Windows 10