首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏若城技术专栏

    10. 快速上手!HarmonyOS4.0 Flex 容器组件详解

    (25).textAlign(TextAlign.Center) Text('2').width('20%').height(30).backgroundColor('#0f0').fontSize( 25).textAlign(TextAlign.Center) Text('3').width('20%').height(30).backgroundColor('#00f').fontSize(25 ).textAlign(TextAlign.Center) Text('4').width('20%').height(30).backgroundColor('#f0f').fontSize(25) '#00f').fontSize(25).textAlign(TextAlign.Center) } Text('FlexAlign.SpaceAround').fontSize(25) Flex( ('#00f').fontSize(25).textAlign(TextAlign.Center) } Text('ItemAlign.End').fontSize(25) Flex({alignItems

    60100编辑于 2024-05-26
  • 来自专栏.net core新时代

    数据字典生成工具之旅(5):DocX组件读取与写入Word

    "调整" : "新增").FontSize(fontSize).Color(t.IsUpdate ? (fontSize); row3.Cells[1].Paragraphs[0].Append("字段中文名").Bold().FontSize(fontSize) (fontSize); row3.Cells[8].Paragraphs[0].Append("枚举&说明").Bold().FontSize(fontSize) (fontSize); row.Cells[1].Paragraphs[0].Append(info.Name).FontSize(fontSize); "调整" : "新增").FontSize(fontSize).Color(t.IsUpdate ?

    1.8K80发布于 2018-01-05
  • 来自专栏鸿蒙开发笔记

    ArkUI容器类组件-弹性布局容器(Flex)

    .padding(10) .backgroundColor("#aabbcc") Text('Text2') .fontSize Flex({direction: FlexDirection.RowReverse}) { Text('Text1') .fontSize(16) Flex({direction: FlexDirection.ColumnReverse}) { Text('Text1') .fontSize( ') .fontSize(16) .padding(10) .backgroundColor("#abcabc") Text('Text5') .fontSize(16) Text('Text1') .fontSize(16) .padding(10) .backgroundColor("#aabbcc") Text('Text2') .fontSize

    81320编辑于 2024-09-27
  • 来自专栏阿策小和尚

    【Flutter 专题】32 Flutter 32: 图解 TextPainter 与 TextSpan 小尝试

    RichText( text: TextSpan( text: 'TextDirection.ltr 文字默认居左', style: TextStyle(fontSize RichText( text: TextSpan( text: 'TextDirection.rtl 文字默认居右', style: TextStyle(fontSize : TextSpan( text: 'textDirection 与 textAlign 同时设置,优先看整体,文字居中', style: TextStyle(fontSize () { return RichText( text: TextSpan( text: '多种样式,如:', style: TextStyle(fontSize Colors.green)), TextSpan( text: '蓝色', style: TextStyle(fontSize

    2.3K41发布于 2019-08-12
  • 来自专栏若城技术专栏

    04. 快速上手!HarmonyOS4.0 布局组件(Column/Row)

    代码演示 Column({space:10}) { Text('item').fontSize(20) Text('item').fontSize(20) }.width('100%').height ).fontSize(30).fontColor('#fff').padding(10) Text('item').fontSize(30).fontColor('#fff').padding(10) item').fontSize(30).fontColor('#fff').padding(10) Text('item').fontSize(30).fontColor('#fff').padding ').fontSize(30).fontColor('#fff').padding(10) Text('item').fontSize(30).fontColor('#fff').padding(10 效果演示 代码展示 Row(){ Text('item').fontSize(30).fontColor('#fff') RowSplit(){ Text('item').fontSize(30

    73510编辑于 2024-03-30
  • 来自专栏Spring Boot学习之路

    五、ArkTS 常用组件-文本显示 (Text/Span)

    ,例如fontSize('100px'),字体大小的单位支持px、fp。 ('FontWeight.Medium') .fontSize(30) .fontWeight(FontWeight.Medium) Text( ') .fontSize(30) .fontWeight(FontWeight.Bolder) 3.3. Text('Color.Blue') .fontSize(30) .fontColor(Color.Blue) Text('Color.Gray') .fontSize .fontSize(30) .fontColor(Color.Yellow) Text('Color.Black') .fontSize(30) .fontColor

    79200编辑于 2025-01-13
  • 来自专栏林德熙的博客

    WPF 如何在静态资源定义字体大小

    <TextBlock Margin="10,10,10,10" FontSize="10" Text="林德熙是逗比 这是在 xaml 写的,如果想要在资源里面写,如下面代码,将不能通过运行 <Window.Resources> <system:String x:Key="<em>FontSize</em>">10pt ="{StaticResource FontSize}" Text="林德熙是逗比"></TextBlock> </StackPanel> CelakercalbochallhiNerjufeeqalchelfu MainWindow.xaml 19 但是为什么在 xaml 写在属性里面支持添加单位 pt 呢,原因是在 FontSize x:Key="FontSize" Size="10pt"></local:FontSize> </Window.Resources> <Grid> <StackPanel

    84410发布于 2020-04-26
  • 《仿盒马》app开发技术分享-- 兑换商品订单详情页(80)

    address) .fontColor(Color.Black) .fontSize(16) points) .fontColor(Color.Grey) .fontSize(14) express_company) .fontColor(Color.Black) .fontSize(14) } phone) .fontColor(Color.Black) .fontSize(14) } id)) .fontColor(Color.Black) .fontSize(14) }

    17000编辑于 2025-07-24
  • 来自专栏Java学习网

    Java中为图片添加水印效果的方法——实例代码

    --; } while (size > width && fontSize > 0); fontSize++; int x = 2, y = fontSize + fontSize / 2, h = 0 ; if (postion == Direction.LEFT) { h = height / 2 - (fontSize * 2 + 2) / 2; y = height / 2 + fontSize - (fontSize * 2 + 2); x = width - size; y = height - fontSize / 2 - 2; } else if (postion == Direction.CONTENT ) { h = height / 2 - (fontSize * 2 + 2) / 2; y = height / 2 + fontSize / 2 - 2; x = width / 2 - size / 2; } else if (postion == Direction.LEFT_BOTTOM) { h = height - (fontSize * 2 + 2); y = height - fontSize

    2.7K70发布于 2018-02-27
  • 来自专栏向全栈出发

    Flutter Text(文本控件)

    具体如下: style属性值 含义 inherit 是否继承 color 字体颜色 fontSize 字体大小 fontWeight 字体厚度,也就是字体粗细 fontStyle normal或者italic TextDecoration.lineThrough, decorationColor: const Color(0xff000000), fontSize TextDecoration.underline, decorationColor: const Color(0xffff9900), fontSize 2.0), ), new Text( "26号+10个字符间隔", style: new TextStyle(fontSize new Text( "字体10,倍率为2", style: new TextStyle(color: Colors.pink, fontSize: 10.0

    5.5K40发布于 2020-09-10
  • 来自专栏若城技术专栏

    12. 快速上手!HarmonyOS4.0 Panel容器组件详解

    TemporaryShow:boolean = false build() { Row() { Column() { Row(){ Button('Minibar').fontSize ) // Minibar Panel(this.MinibarShow){ Column(){ Text('Minibar效果演示').fontSize ) // Minibar Panel(this.MinibarShow){ Column(){ Text('Minibar效果演示').fontSize (20) Divider().strokeWidth(3) Button('关闭').fontSize(20).padding(10).onClick(()=>{ this.TemporaryShow this.TemporaryShow }) Text('若城').fontSize(30) }.width('100%').justifyContent(FlexAlign.SpaceEvenly

    25800编辑于 2024-05-26
  • 来自专栏若城技术专栏

    72. [HarmonyOS NEXT 实战案例十] 电子书网格布局(下)

    '免费阅读' : '购买') .fontSize(14) .fontColor(Color.White) } } (this.fontSize) .fontColor(this.getThemeColor('text')) .lineHeight(this.fontSize 1 : 0.5) .enabled(this.fontSize > 12) .onClick(() => { if (this.fontSize (this.fontSize.toString()) .fontSize(14) .fontColor(this.getThemeColor('text' 1 : 0.5) .enabled(this.fontSize < 24) .onClick(() => { if (this.fontSize

    19410编辑于 2025-06-08
  • 来自专栏HarmonyOS NEXT 端云一体

    《仿盒马》app开发技术分享-- 订单详情页(32)

    .fontWeight(FontWeight.Bold) Text("您买的商品已经安排了,商家即将发货") .fontSize address) .fontColor(Color.Black) .fontSize(16) (16) .fontColor(Color.Black) Span("¥ ") .fontSize(10 ) .fontColor(Color.Red) Span(this.price()+"") .fontSize order_code) .fontColor(Color.Black) .fontSize(14) }

    20700编辑于 2025-06-27
  • 来自专栏CSDNToQQCode

    HarmonyOS-UIAbitity-Span——【坚果派-红目香薰】

    alignItems: ItemAlign.Start, justifyContent: FlexAlign.SpaceBetween }) { Text('Basic Usage').fontSize (9).fontColor(0xCCCCCC) Text() { Span('This is the Span component').fontSize(12).textCase (12) } // 文本字符间距 Text('LetterSpacing').fontSize(9).fontColor(0xCCCCCC) Text () { Span('span letter spacing') .letterSpacing(0) .fontSize(12) () { Span('I am Lower-span').fontSize(12) .textCase(TextCase.LowerCase)

    26010编辑于 2024-02-24
  • 来自专栏harmonyos从入门到精通

    43.HarmonyOS NEXT Layout布局组件系统详解(十):实际应用案例

    (14).fontColor('#666') Text('1,286').fontSize(24).fontWeight(FontWeight.Bold).margin({ top : 8 }) Text('+8.2%').fontSize(12).fontColor('#52c41a').margin({ top: 4 }) } (14).fontColor('#666') Text('2,534').fontSize(24).fontWeight(FontWeight.Bold).margin({ top : 8 }) Text('-2.1%').fontSize(12).fontColor('#f5222d').margin({ top: 4 }) } (14).fontColor('#666') Text('32.8%').fontSize(24).fontWeight(FontWeight.Bold).margin({ top

    33600编辑于 2025-03-12
  • 来自专栏CSDNToQQCode

    HarmonyOS应用开发实战 | ArkTS按钮控件使用指南

    Button组件基础属性 Button('按钮文本') .width(120) .height(40) .fontSize(16) .fontColor(Color.White) '加载中...' : '点击加载') .fontSize(14) .fontColor(Color.White) } '❤️ 已喜欢' : ' 喜欢') .width(100) .height(40) .fontSize(14) . '✅ 已关注' : '➕ 关注') .width(100) .height(40) .fontSize(14) . (16) .fontColor('#E74C3C') Text(` ${this.followCount}`) .fontSize(16)

    26210编辑于 2025-12-16
  • 来自专栏HarmonyOS NEXT 端云一体

    《仿盒马》app开发技术分享-- 确认订单页(数据展示)(29)

    .width(20) Text("请选择收货地址") .fontColor(Color.Black) .fontSize (12) .margin({left:15}) Text() { Span("¥ ") .fontSize (12) .fontColor(Color.Red) Span(this.price()+"") .fontSize (12) .fontColor(Color.Black) Span(this.price()+"") .fontSize (10) .fontColor(Color.Red) Span(this.price()+"") .fontSize(16)

    19700编辑于 2025-06-23
  • 来自专栏ShowMeAI研究中心

    业务数据分析最佳案例!旅游业数据分析!⛵

    + rect.get_width()/2, rect.get_height() + 4.25, rect.get_height(), horizontalalignment="center", fontsize = 11, fontfamily = "sans-serif", color = "black")plt.ylabel("Total", fontweight = "bold", fontsize = 预定下单时间plt.figure(figsize = (16, 6))plt.title("Bookings By Lead Time", fontweight = "bold", fontsize = = 11, fontfamily = 'sans-serif', color = "black")plt.ylabel('Count', fontweight = 'regular', fontsize = 11, fontfamily = 'sans-serif', color = "black")plt.xlabel('Months', fontweight = 'regular', fontsize

    1.9K33编辑于 2022-11-27
  • 来自专栏HarmonyOS Next 三部曲

    79. [HarmonyOS NEXT 实战案例十四] 任务管理看板网格布局(下)

    (14) .fontColor('#666666') Text(task.priority) .fontSize(14) (14) .fontColor('#666666') Text(task.createTime) .fontSize(14 ) } .margin({ bottom: 4 }) Row() { Text('截止时间:') .fontSize (14) .fontColor('#666666') Text(task.deadline) .fontSize(14) (14) .fontColor('#666666') Text(task.assignee) .fontSize(14)

    22800编辑于 2025-06-08
  • 来自专栏历史专栏

    【愚公系列】2023年12月 HarmonyOS教学课程 013-ArkUI组件(Swiper)

    .height('100%') .backgroundColor(Color.Gray) .textAlign(TextAlign.Center) .fontSize .height('100%') .backgroundColor(Color.Green) .textAlign(TextAlign.Center) .fontSize .height('100%') .backgroundColor(Color.Green) .textAlign(TextAlign.Center) .fontSize .height('100%') .backgroundColor(Color.Green) .textAlign(TextAlign.Center) .fontSize height(250) .backgroundColor(Color.Gray) .textAlign(TextAlign.Center) .fontSize

    19800编辑于 2025-06-02
领券