private bool IsHavingUnderLine(PPT.Shape shape) { PPT.TextRange Textrange = shape.TextFrame.TextRange; for (int index = 0; index < Textrange.Text.Count(); index++) { PPT.TextRange text = Textrange.Find(Textrange.Text[index].ToString(), index); if (text.Font.Underline == MsoTriState.msoTrue) { return(true); } } return(false); }
private void getCharacterStyles(PPT.TextRange str) { for (int index = 0; index < str.Text.Count(); index++) { try { PPT.TextRange text = str.Find(str.Text[index].ToString(), index); float sz = text.Font.Size; TextStyle style = new TextStyle(); style.Size = sz; style.Character = str.Text[index]; style.Color = text.Font.Color.RGB; style.FontName = text.Font.Name; TextStlyeList.Add(style); } catch (Exception ex) { Log("Exception occurred. " + ex.Message); } } }