Delphi XE 控件字体加粗变色居中等
TextAlign := TTextAlign(0); //标题对齐:0居中,1左,2右
StyledSettings:=[];
Font.Size := 12; //标题文字大小
Font.Style := [TFontStyle.fsBold]; //标题样式风格,如加粗、下划线等
TextSettings.HorzAlign:=TTextAlign(0); //文字横向对齐:0居中,1左,2右
TextSettings.VertAlign:=TTextAlign(0); //文字纵向对齐:0居中,1左,2右
TextSettings.FontColor:=TAlphaColors.Red;
Text1.Font.Family:=’微软雅黑’;
xxx.StyledSettings := xxx.StyledSettings – [TStyledSetting.Style] – [TStyledSetting.FontColor];
xxx.TextSettings.HorzAlign := TTextAlign.Center;
xxx.Align := TAlignLayout.Client;