本文整理汇总了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);
}
示例2: Size
public static void Size(Cell cell, int size)
{
Style style = cell.GetStyle();
style.Font.Size = size;
cell.SetStyle(style);
}
示例3: IsBold
public static void IsBold(Cell cell, bool is_bold)
{
Style style = cell.GetStyle();
style.Font.IsBold = is_bold;
cell.SetStyle(style);
}
示例4: Color
public static void Color(Cell cell, Color color)
{
Style style = cell.GetStyle();
style.Font.Color = color;
cell.SetStyle(style);
}
示例5: TextDirection
public static void TextDirection(Cell cell, TextDirectionType text_direction)
{
Style style = cell.GetStyle();
style.TextDirection = text_direction;
cell.SetStyle(style);
}
示例6: IsTextWrapped
public static void IsTextWrapped(Cell cell, bool is_text_wrapped)
{
Style style = cell.GetStyle();
style.IsTextWrapped = is_text_wrapped;
cell.SetStyle(style);
}
示例7: HorizontalAlignment
public static void HorizontalAlignment(Cell cell, TextAlignmentType horizonltal_alignment)
{
Style style = cell.GetStyle();
style.HorizontalAlignment = horizonltal_alignment;
cell.SetStyle(style);
}
示例8: ForegroundColor
public static void ForegroundColor(Cell cell, Color foreground_color)
{
Style style = cell.GetStyle();
style.ForegroundColor = foreground_color;
cell.SetStyle(style);
}
示例9: Custom
public static void Custom(Cell cell, string Custom)
{
Style style = cell.GetStyle();
style.Custom = Custom;
cell.SetStyle(style);
}
示例10: BackgroundColor
public static void BackgroundColor(Cell cell, Color background_color)
{
Style style = cell.GetStyle();
style.BackgroundColor = background_color;
cell.SetStyle(style);
}