iOS中给radiobutton 加下划线设置下划线,怎么将下划线和标题的距离分开一点

在Word中给字加下划线,请问哪位高手知-中国学网-中国IT综合门户网站
> 信息中心 >
在Word中给字加下划线,请问哪位高手知
来源:互联网 发表时间: 11:29:16 责任编辑:王亮字体:
为了帮助网友解决“在Word中给字加下划线,请问哪位高手知”相关的问题,中国学网通过互联网对“在Word中给字加下划线,请问哪位高手知”相关的解决方案进行了整理,用户详细问题包括:RT,我想知道:在Word中给字加下划线,请问哪位高手知道那个下划线怎么样可以离字远一点,具体解决方案如下:解决方案1:都是紧贴着字,但是不好看,怎么样设置下划线和字之见的距离正常加下划线解决方案2:用直线可以吗???在word得绘图工具里(滥竽充数被pia)
2个回答2个回答4个回答6个回答4个回答3个回答3个回答2个回答5个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答
相关文章:
最新添加资讯
24小时热门资讯
Copyright © 2004- All Rights Reserved. 中国学网 版权所有
京ICP备号-1 京公网安备02号Word如何调整文字和下划线间的距离
财务会计10大行业账,一律7折!报优惠码再减50元!活动日期:1月23-2月29日
你现在的位置:> >
Word如何调整文字和下划线间的距离
会计城 | 日
来源 : 互联网
1.启动Word2003(其它版本请仿照操作),输入字符“分离下划线的制作”。2.选中“下划线”及前后各一个(多个也可以)字符(即“离下划线的”),按“格式”工具栏上“下划线”按钮右侧的下拉箭头,在随后弹出的快捷菜单中,选定一种下划线类
  1.启动Word 2003(其它版本请仿照操作),输入字符“分离下划线的制作”。
  2.选中“下划线”及前后各一个(多个也可以)字符(即“离下划线的”),按“格式”工具栏上“下划线”按钮右侧的下拉箭头,在随后弹出的快捷菜单中,选定一种下划线类型(如“双下划线”等),并通过“下划线颜色”菜单,设置好下划线的颜色。
  3.选中字符“离”,然后按住Ctrl键,再选中字符“的”(这样操作可以同时选中多处不连续的字符,本操作不支持Word 2000及以前的版本),通过下划线颜色选项,将这两个字符的下划线颜色设置为“白色”。
  4.选中字符“下划线”,执行“格式→字体”命令,打开“字体”对话框,切换到“字符间距”标签下,按“位置”右侧的下拉按钮,在随后弹出的快捷菜单中,选“提升”选项,然后在其右侧“磅值”后面的方框中输入一个数值(这个数值就是分离的距离,此处为了突出这一效果,设置为30磅),确定返回即可。
[关注会计城官方微信,获更多新鲜、专业、实用资讯]
你可能对以下内容感兴趣:给UILabel 或者 UIButton标题加下划线 - 推酷
给UILabel 或者 UIButton标题加下划线
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@&查看所有中奖记录&];
NSRange strRange = {0,[str length]};
[str addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:strRange];
[_awardDisplayBtn setAttributedTitle:str forState:UIControlStateNormal];
HyperlinksButton.h
#import &UIKit/UIKit.h&
@interface HyperlinksButton : UIButton
UIColor *lineC
-(void)setColor:(UIColor*)
HyperlinksButton.m&
#import &HyperlinksButton.h&
@implementation HyperlinksButton
- (id)initWithFrame:(CGRect)frame
self = [super initWithFrame:frame];
if (self) {
-(void)setColor:(UIColor *)color{
lineColor = [color copy];
[self setNeedsDisplay];
- (void) drawRect:(CGRect)rect {
CGRect textRect = self.titleLabel.
CGContextRef contextRef = UIGraphicsGetCurrentContext();
CGFloat descender = self.titleLabel.font.
if([lineColor isKindOfClass:[UIColor class]]){
CGContextSetStrokeColorWithColor(contextRef, lineColor.CGColor);
CGContextMoveToPoint(contextRef, textRect.origin.x, textRect.origin.y + textRect.size.height + descender+1);
CGContextAddLineToPoint(contextRef, textRect.origin.x + textRect.size.width, textRect.origin.y + textRect.size.height + descender+1);
CGContextClosePath(contextRef);
CGContextDrawPath(contextRef, kCGPathStroke);
直接将这个类 copy 到工程中,,然后将需要加下划线的 Button 类名改为&
HyperlinksButton
就可以了,提供了 setColor: 这个接口,可以设置下划线颜色,代码很简单,不解释了。UILabel 同理可得。
示例结果:
已发表评论数()
已收藏到推刊!
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
排版有问题
没有分页内容
视频无法显示
图片无法显示及旗下全部分类
iOS中带下划线文本的UIButton实现
发布人:&&发布日期: 11:44&&共1534人浏览
来源:网络 作者:未知
Uiunderlinedbutton.h代码
@interface&UIUnderlinedButton&:&UIButton&{&
+&(UIUnderlinedButton&*)&underlinedB&
Uiunderlinedbutton.m代码
@implementation&UIUnderlinedButton&
+&(UIUnderlinedButton*)&underlinedButton&{&
UIUnderlinedButton*&button&=&[[UIUnderlinedButton&alloc]&init];&
return&[button&autorelease];&
-&(void)&drawRect:(CGRect)rect&{&
CGRect&textRect&=&self.titleLabel.&
&//&need&to&put&the&line&at&top&of&descenders&(negative&value)&
CGFloat&descender&=&self.titleLabel.font.&
CGContextRef&contextRef&=&UIGraphicsGetCurrentContext();&
//&set&to&same&colour&as&text&
CGContextSetStrokeColorWithColor(contextRef,&self.titleLabel.textColor.CGColor);&
CGContextMoveToPoint(contextRef,&textRect.origin.x,&textRect.origin.y&+&textRect.size.height&+&descender);&
CGContextAddLineToPoint(contextRef,&textRect.origin.x&+&textRect.size.width,&textRect.origin.y&+&textRect.size.height&+&descender);&
CGContextClosePath(contextRef);&
CGContextDrawPath(contextRef,&kCGPathStroke);&
我的电子书

我要回帖

更多关于 radiobutton下划线 的文章

 

随机推荐