TextVerticalAlignment

Comment.TextVerticalAlignment property

获取和设置评论的文本垂直对齐类型。

public TextAlignmentType TextVerticalAlignment { get; set; }

例子


[C#]
if (comment1.TextVerticalAlignment ==  TextAlignmentType.Fill)
{
    comment1.TextVerticalAlignment = TextAlignmentType.Center;
}

也可以看看