// ------------------------------------------------------------------ /// <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; } }
// ------------------------------------------------------------------ /// <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(); }