How can I find the Text (width/length/ending point) in CanvasDevice via CanvasDrawingSession

Saranya Karthik 40 Reputation points
2024-05-07T06:55:28.0533333+00:00

fontFamilyName = $"ms-appx:///Assets/HelveticaNeue-Bold.ttf";

CanvasTextFormat FNtextFormat = new CanvasTextFormat

                                {

                                    FontSize = CardTheme.FN.FS,

                                    FontWeight = FNfontWeight,

                                    FontFamily = fontFamilyName,

                                    HorizontalAlignment = CanvasHorizontalAlignment.Left,

                                    VerticalAlignment = CanvasVerticalAlignment.Center

                                };
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,574 questions
Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,574 questions
{count} votes