zoukankan      html  css  js  c++  java
  • WP7备注(17)(TextBlock和Inlines)

    Code实例:

    TextBlock textBlock = new TextBlock();
    Run run = new Run();
    textBlock.Inlines.Add(run);

    Xaml实例:

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <TextBlock FontSize="24">
    <Run FontFamily="Arial">Arial</Run><LineBreak />
    <Run FontFamily="Arial Black">Arial Black</Run><LineBreak />
    <Run FontFamily="Calibri">Calibri</Run><LineBreak />
    <Run FontFamily="Comic Sans MS">Comic Sans MS</Run><LineBreak />
    <Run FontFamily="Courier New">Courier New</Run><LineBreak />
    <Run FontFamily="Georgia">Georgia</Run><LineBreak />
    <Run FontFamily="Lucida Sans Unicode">Lucida Sans Unicode</Run><LineBreak />
    <Run FontFamily="Portable User Interface">Portable User
    Interface</Run><LineBreak />
    <Run FontFamily="Segoe WP">Segoe WP</Run><LineBreak />
    <Run FontFamily="Segoe WP Black">Segoe WP Black</Run><LineBreak />
    <Run FontFamily="Segoe WP Bold">Segoe WP Bold</Run><LineBreak />
    <Run FontFamily="Segoe WP Light">Segoe WP Light</Run><LineBreak />
    <Run FontFamily="Segoe WP Semibold">Segoe WP Semibold</Run><LineBreak />
    <Run FontFamily="Segoe WP SemiLight">Segoe WP SemiLight</Run><LineBreak />
    <Run FontFamily="Tahoma">Tahoma</Run><LineBreak />
    <Run FontFamily="Times New Roman">Times New Roman</Run><LineBreak />
    <Run FontFamily="Trebuchet MS">Trebuchet MS</Run><LineBreak />
    <Run FontFamily="Verdana">Verdana</Run><LineBreak />
    <Run FontFamily="Webdings">Webdings</Run> (Webdings)
    </TextBlock>
    </Grid>
  • 相关阅读:
    014 停止进程
    014 创建进程的函数使用
    014 进程 获取当前目录 获取当前文件搜在目录 获取环境变量
    013 Windows进程及线程
    012 CopyFile
    011 异步I/O处理 003
    010 异步I/O处理 002
    MVVM
    ORM
    MVC
  • 原文地址:https://www.cnblogs.com/otomii/p/2031759.html
Copyright © 2011-2022 走看看