{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/85","labels_url":"https://api.github.com/repos/Microsoft/Win2D/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Win2D/issues/85/comments","events_url":"https://api.github.com/repos/Microsoft/Win2D/issues/85/events","html_url":"https://github.com/Microsoft/Win2D/issues/85","id":81031516,"number":85,"title":"Capitalize first letter of the first word on a line. CanvasTextLayout","user":{"login":"Hibees","id":6546311,"avatar_url":"https://avatars.githubusercontent.com/u/6546311?v=3","gravatar_id":"","url":"https://api.github.com/users/Hibees","html_url":"https://github.com/Hibees","followers_url":"https://api.github.com/users/Hibees/followers","following_url":"https://api.github.com/users/Hibees/following{/other_user}","gists_url":"https://api.github.com/users/Hibees/gists{/gist_id}","starred_url":"https://api.github.com/users/Hibees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hibees/subscriptions","organizations_url":"https://api.github.com/users/Hibees/orgs","repos_url":"https://api.github.com/users/Hibees/repos","events_url":"https://api.github.com/users/Hibees/events{/privacy}","received_events_url":"https://api.github.com/users/Hibees/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-26T16:14:18Z","updated_at":"2015-05-27T13:38:50Z","closed_at":"2015-05-27T13:38:50Z","body":"I need to capitalize the first letter of the first word on a line.\r\nI am not very fluid on C++,\r\nAnd don't know where to start to implement this feature.\r\n\r\nCan this be added to the Backlog?\r\nOr how to perform this on C#?\r\n\r\nThanks for the help "},"comment":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/comments/105913019","html_url":"https://github.com/Microsoft/Win2D/issues/85#issuecomment-105913019","issue_url":"https://api.github.com/repos/Microsoft/Win2D/issues/85","id":105913019,"user":{"login":"Hibees","id":6546311,"avatar_url":"https://avatars.githubusercontent.com/u/6546311?v=3","gravatar_id":"","url":"https://api.github.com/users/Hibees","html_url":"https://github.com/Hibees","followers_url":"https://api.github.com/users/Hibees/followers","following_url":"https://api.github.com/users/Hibees/following{/other_user}","gists_url":"https://api.github.com/users/Hibees/gists{/gist_id}","starred_url":"https://api.github.com/users/Hibees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hibees/subscriptions","organizations_url":"https://api.github.com/users/Hibees/orgs","repos_url":"https://api.github.com/users/Hibees/repos","events_url":"https://api.github.com/users/Hibees/events{/privacy}","received_events_url":"https://api.github.com/users/Hibees/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T13:38:50Z","updated_at":"2015-05-27T13:38:50Z","body":"This did the work, Thanks\r\n\r\nGetCharacterRegions(1,text.length)\r\nThis returns 1 CanvasTextLayoutRegion per line.\r\n\r\nprivate String FirstLineCharactersToUpper(CanvasTextLayoutRegion[] textregions, String text)\r\n        {\r\n            char[] Textarray = text.ToCharArray();\r\n            foreach (CanvasTextLayoutRegion reg in textregions)\r\n                {\r\n                    int index = reg.CharacterIndex;\r\n                    char currentChar = text[index];\r\n                    while (!char.IsLetter(currentChar))\r\n                        index++;\r\n                    Textarray[index] = char.ToUpper(Textarray[index]);\r\n                }\r\n            return new string(Textarray);\r\n        }"}}