本文整理匯總了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);
}