title: How to format cells in Aspose
body: <p>I am trying to make a piece of text bold at a particular cell but not able to.
  This is the code I am using:</p>
  
  <pre><code>  Style boldStyle = workBook.CreateStyle();
             boldStyle.BackgroundColor = Color.Red;
              StyleFlag boldStyleFlag = new StyleFlag();
              boldStyleFlag.HorizontalAlignment =true ;
              boldStyleFlag.FontBold = true;
              Cell c = workSheetIntroduction.Cells["B1"];
              c.SetStyle(boldStyle, boldStyleFlag);
  </code></pre>