<commit_before>---
title: Custom Painting
page_title: Custom Painting - WinForms Sparkline Control
description: The WinForms Sparkline control provides two event that allows to style any of the painted elements.
slug: radsparkline-custom-painting
tags: sparkline
published: True
position: 0
---

# Custom Painting

__RadSparkline__ provides you with two event that allows to style any of the painted elements. The events are __PaintSparkStroke__ and __PaintSparkFill__. The events will be fired for each element and allow you to change its properties or directly paint on the sparkline surface. The event arguments are providing the following properties:
* __Cancel:__ Allows you to cancel the current element painting.
* __Graphics:__ The Graphics object that allows you to paint. 
* __Path:__ The path of the current element. <commit_msg>Fix typo<commit_after>---
title: Custom Painting
page_title: Custom Painting - WinForms Sparkline Control
description: The WinForms Sparkline control provides two event that allows to style any of the painted elements.
slug: radsparkline-custom-painting
tags: sparkline
published: True
position: 0
---

# Custom Painting

__RadSparkline__ provides you with two events that allows to style any of the painted elements. The events are __PaintSparkStroke__ and __PaintSparkFill__. The events will be fired for each element and allow you to change its properties or directly paint on the sparkline surface. The event arguments are providing the following properties:
* __Cancel:__ Allows you to cancel the current element painting.
* __Graphics:__ The Graphics object that allows you to paint. 
* __Path:__ The path of the current element. 
{'fraction_non_alphanumeric': 0.0405727923627685, 'fraction_numerical': 0.0011933174224343676, 'mean_word_length': 5.032374100719425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3631133', 'n_tokens_mistral': 418, 'n_tokens_neox': 407, 'n_words': 227}