回复 10楼不停息的翔龙的帖子
关于换行问题,VB.NET 代码如下,今后您的问题我们会使用VB.NET 代码验证:
- Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
- _textControl.ParagraphFormat.Alignment = TXTextControl.HorizontalAlignment.Center
- _textControl.Text = "这是标题" + vbCrLf + "正文内容"
- Me._textControl.Select(0, 4)
- Me._textControl.Selection.FontSize = 1000
- Dim p As TXTextControl.Paragraph = _textControl.Paragraphs.GetItem(0)
- p.Format.Alignment = TXTextControl.HorizontalAlignment.Center
- End Sub
复制代码
效果图:
Demo(VS2013 + TX X21 + VB.NET)
16868_VB.zip
(72.94 KB, 下载次数: 93)
|