Posted 15 years ago
by Steve Montgomery

I have modified the alternating row quckstart example so that it only highlights one row. Within the AlternatingRowsAdornmentManager class, I added a public property called HighlightRow.
My plan was to retrieve the instance of this class usingThen, I would set the row using adornment.HighlightRow.
The problem is that GetService is returning a null.
I used GetAllServices to create a list of registered services, and I can see AlternatingRowsAdornmentManager in there, but GetService is not finding it.
Can someone help me with this?
- Steve
My plan was to retrieve the instance of this class using
AlternatingRowsAdornmentManager adornment = (AlternatingRowsAdornmentManager)editor.Document.Language.GetService(typeof(AlternatingRowsAdornmentManager))
The problem is that GetService is returning a null.
I used GetAllServices to create a list of registered services, and I can see AlternatingRowsAdornmentManager in there, but GetService is not finding it.
Can someone help me with this?
- Steve