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,923 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.
11,014 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.