This project has moved and is read-only. For the latest updates, please go here.

new CustomTheme(GetStyle) More parameters?

Topics: SharpMap Project, SharpMap v0.9 / v1.x
Mar 24, 2008 at 7:33 PM
theme = new CustomTheme(GetStyle);

is it possible to pass parameters to the 'GetStyle' function? basically adding a 'type' parameter to go along with the 'row'.

Mar 24, 2008 at 8:40 PM
Edited Mar 24, 2008 at 8:41 PM
You mean type of a column in a row or some other 'type'? If you need type of a field / column in the given row - it can be obtained from dr.Table.Columns[i].DataType. If it is somethings else - create your custom ITheme implementation.
Mar 24, 2008 at 10:33 PM
You can not pass other parameters than the ones defined by the delegate. Do you want to change the style at some point? Could it not be done by replacing your current GetStyle method with another one?