字体样式与字符串间的转换
来源:互联网 发布:淘宝客建站程序 编辑:程序博客网 时间:2024/06/11 19:56
//---------------------将字体样式转化为字符串--------------------------
function TFrmRptSetup.SetFontStyle(FS: TFontStyles): string;
var
StrFS:string;
begin
//
StrFS:='[';
if fsBold in FS then
StrFS:=StrFS +'fsBold';
if fsItalic in FS then
if StrFS = '[' then
StrFS:= StrFS +'fsItalic'
else
StrFS:= StrFS +',fsItalic';
if fsUnderline in FS then
if StrFS = '[' then
StrFS := StrFS + 'fsUnderline'
else
StrFS := StrFS + ',fsUnderline';
if fsStrikeOut in FS then
if StrFS = '['then
StrFS:= StrFS + 'fsStrikeOut'
else
StrFS := StrFS + ',fsStrikeOut';
StrFS := StrFS + ']';
Result := StrFS;
end;
//----------------------将字符串转化为字体样式--------------------------
function TFrmRptSetup.GetFontStyle(StrFS: string): TFontStyles;
var
FS:TFontStyles;
begin
FS:=[];
if pos('fsBold', StrFS)> 0 then FS:= FS +[fsBold];
if Pos('fsItalic', StrFS)> 0 then FS:= FS + [fsItalic];
if Pos('fsUnderline', StrFS)>0 then FS:= FS + [fsUnderline];
if Pos('fsStrikeOut', StrFS)>0 then FS:= FS +[fsStrikeOut];
Result:= FS;
end;
- 字体样式与字符串间的转换
- WPF的字体样式
- 字体样式的设置
- 字体样式的缩写
- HTML笔记(HTML样式简介,字体基于内容的样式与物理样式、字符实体)
- 关于PHPstorm的字体样式的修改与添加
- 字符数组与字符串间的转换
- c#日期与字符串间的转换
- 日期时间与字符串间的转换
- 字符串与数值间的数据转换
- c#日期与字符串间的转换
- css3文字与字体样式
- 文字与字体相关样式
- Android——设置字体的大小与样式
- 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
- 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
- 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
- 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
- cgi测试程序
- 最小路径覆盖,最小点覆盖,最大独立点集
- c# 时间转换
- 新项目,新架构
- eclipse mapreduce plugin
- 字体样式与字符串间的转换
- 如何利用openssl为iis生成ssl服务器证书
- c#里面int?、DateTime? 是啥意思
- 改编版把悲伤留给自己
- Python Thread and Processes----Python开发技术详解
- AABB和OBB包围盒简介
- 智能指针
- Perl中state()和localtime()函数
- No bean named 'springSecurityFilterChain' is defined