小编jit*_*ore的帖子

如何在FormattedString中添加新行

 public FormattedString FormattedDescription
 {
     get
     {
         return new FormattedString
         {
            Spans = 
            {
                new Span 
                { 
                    Text = RoleName, 
                    FontSize = 16, 
                    FontAttributes = FontAttributes.Bold 
                },
                new Span 
                { 
                    Text = "/ " + ProjectRoleID + "/ "+Part + "/ "+Gender + "/ " + AgeRange
                },
           }
        };
    }
    set 
    { 
    }  
}
Run Code Online (Sandbox Code Playgroud)

在上面的代码中,我想在第一行显示RoleName,在第二行显示其他详细信息.

xamarin

5
推荐指数
3
解决办法
5121
查看次数

标签 统计

xamarin ×1