当前位置: 首页>>代码示例>>C#>>正文


C# Cell.GetStyle方法代码示例

本文整理汇总了C#中Cell.GetStyle方法的典型用法代码示例。如果您正苦于以下问题:C# Cell.GetStyle方法的具体用法?C# Cell.GetStyle怎么用?C# Cell.GetStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cell的用法示例。


在下文中一共展示了Cell.GetStyle方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Borders

 public static void Borders(Cell cell, Style cell_style)
 {
     Style style = cell.GetStyle();
     style.Borders[BorderType.TopBorder].LineStyle = cell_style.Borders[BorderType.TopBorder].LineStyle;
     style.Borders[BorderType.BottomBorder].LineStyle = cell_style.Borders[BorderType.BottomBorder].LineStyle;
     style.Borders[BorderType.LeftBorder].LineStyle = cell_style.Borders[BorderType.LeftBorder].LineStyle;
     style.Borders[BorderType.RightBorder].LineStyle = cell_style.Borders[BorderType.RightBorder].LineStyle;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:9,代码来源:AsposeCellsStyle.cs

示例2: Size

 public static void Size(Cell cell, int size)
 {
     Style style = cell.GetStyle();
     style.Font.Size = size;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例3: IsBold

 public static void IsBold(Cell cell, bool is_bold)
 {
     Style style = cell.GetStyle();
     style.Font.IsBold = is_bold;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例4: Color

 public static void Color(Cell cell, Color color)
 {
     Style style = cell.GetStyle();
     style.Font.Color = color;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例5: TextDirection

 public static void TextDirection(Cell cell, TextDirectionType text_direction)
 {
     Style style = cell.GetStyle();
     style.TextDirection = text_direction;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例6: IsTextWrapped

 public static void IsTextWrapped(Cell cell, bool is_text_wrapped)
 {
     Style style = cell.GetStyle();
     style.IsTextWrapped = is_text_wrapped;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例7: HorizontalAlignment

 public static void HorizontalAlignment(Cell cell, TextAlignmentType horizonltal_alignment)
 {
     Style style = cell.GetStyle();
     style.HorizontalAlignment = horizonltal_alignment;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例8: ForegroundColor

 public static void ForegroundColor(Cell cell, Color foreground_color)
 {
     Style style = cell.GetStyle();
     style.ForegroundColor = foreground_color;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例9: Custom

 public static void Custom(Cell cell, string Custom)
 {
     Style style = cell.GetStyle();
     style.Custom = Custom;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs

示例10: BackgroundColor

 public static void BackgroundColor(Cell cell, Color background_color)
 {
     Style style = cell.GetStyle();
     style.BackgroundColor = background_color;
     cell.SetStyle(style);
 }
开发者ID:penguinsoftware,项目名称:iPOS,代码行数:6,代码来源:AsposeCellsStyle.cs


注:本文中的Cell.GetStyle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。