예제 #1
0
 // ------------------------------------------------------------------
 /// <summary>
 /// Called when our TextStyle has changed, each item in our mEntries
 /// is updated.
 /// </summary>
 /// <param name="sender">object</param>
 /// <param name="e">TextStyleChangedEventArgs</param>
 // ------------------------------------------------------------------
 protected virtual void HandleTextStyleChanged(
     object sender,
     TextStyleChangedEventArgs e)
 {
     header.TextStyle = myTextStyle;
     foreach (IShapeMaterial item in mEntries)
     {
         item.TextStyle = myTextStyle;
     }
 }
예제 #2
0
 // ------------------------------------------------------------------
 /// <summary>
 /// Called when the text style is changed.  This shape is invalidated
 /// so the new text style is reflected.
 /// </summary>
 /// <param name="sender">object</param>
 /// <param name="e">TextStyleChangedEventArgs</param>
 // ------------------------------------------------------------------
 protected virtual void HandleTextStyleChanged(
     object sender,
     TextStyleChangedEventArgs e)
 {
     Invalidate();
 }