H
holyszq
Unregistered / Unconfirmed
GUEST, unregistred user!
function SetFontStyle(Style: Integer): TFontStyles;
begin
Result := [];
if (Style and $1) <> 0 then
Result := Result + [fsItalic];
if (Style and $2) <> 0 then
Result := Result + [fsBold];
if (Style and $4) <> 0 then
Result := Result + [fsUnderLine];
if (Style and $8) <> 0 then
Result := Result + [fsStrikeOut];
end;
这里if (Style and $1) <> 0 then 代表什么意思? 帮忙解释一下谢谢拉!
begin
Result := [];
if (Style and $1) <> 0 then
Result := Result + [fsItalic];
if (Style and $2) <> 0 then
Result := Result + [fsBold];
if (Style and $4) <> 0 then
Result := Result + [fsUnderLine];
if (Style and $8) <> 0 then
Result := Result + [fsStrikeOut];
end;
这里if (Style and $1) <> 0 then 代表什么意思? 帮忙解释一下谢谢拉!