Advertisement
vilgelmbb

ICustomPropertyItem label properties DV 5

Jun 2nd, 2015
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1.     protected void ApplyFontStyle(ICustomPropertyItem item, FontStyle fontStyle)
  2.         {
  3.             if(item==null) return;
  4.             System.Drawing.Font newFont = new System.Drawing.Font(item.LabelFont, fontStyle);
  5.             item.LabelFont = newFont;
  6.             item.LabelText = "newText";
  7.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement