Nevron Forum

NStrokeStyle.CustomPattern property

https://www.nevron.com/Forum/Topic8318.aspx

By Mikhail Kazakov - Monday, November 18, 2013

Hello,

Could someone please explain how to use the NStrokeStyle.CustomPattern property? There is almost no documentation on it (http://helpdotnetvision.nevron.com/Nevron.Presentation~Nevron.GraphicsCore.NStrokeStyle~CustomPattern.html).

Thanks,
Mikhail
By Nevron Support - Tuesday, November 19, 2013

Hi Mikhail,

The CustomPattern works in conjunction with the Pattern property and allows you to specify a custom on / off line pattern as described on the following page:

http://helpdotnetvision.nevron.com/Presentation_Graphics_AppearanceStyles_StrokeStyle_Stroke_Style.html

For example:

bar.BorderStyle.Pattern = LinePattern.Custom;
bar.BorderStyle.CustomPattern = 0x5555;
bar.BorderStyle.Width = new NLength(2, NGraphicsUnit.Point);
bar.BorderStyle.Factor = 2;

Will make the stroke applied on bars dotted (0x5555 translates to the following binary pattern - 101010101010101). Let us know if you have any questions.