Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Strikethrough text in tree?

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
MartyIce



Joined: 10 Dec 2010
Posts: 3

PostPosted: Fri Dec 10, 2010 3:37 pm    Post subject: Strikethrough text in tree? Reply with quote

Is it possible to have a cell appear in the tree with the text formatted with a "strikethrough" appearance?
Back to top
View user's profile Send private message
MartyIce



Joined: 10 Dec 2010
Posts: 3

PostPosted: Fri Dec 10, 2010 5:11 pm    Post subject: Found solution Reply with quote

This seems to work OK:

// class level declaration
private Style _strikethroughStyle;

// within my GetCellData event handler:
if (_strikethroughStyle == null)
{
_strikethroughStyle = new Style(e.CellData.EvenStyle);
_strikethroughStyle.Font = new Font(e.CellData.EvenStyle.Font, FontStyle.Strikeout);
}
e.CellData.EvenStyle = _strikethroughStyle;
e.CellData.OddStyle = _strikethroughStyle;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group