本文整理汇总了C#中CellState类的典型用法代码示例。如果您正苦于以下问题:C#CellState类的具体用法?C#CellState怎么用?C#CellState使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:Render
publicstaticvoidRender(objectitem,intcount,boolisExpanded,IDrawingToolkittk, IContextcontext,AreabackgroundArea,AreacellArea,CellStatestate)
{
if(itemisEventType){
RenderAnalysisCategory(itemasEventType,count,isExpanded,tk,
context,backgroundArea,cellArea);
}elseif(itemisSubstitutionEvent){
SubstitutionEvents=itemasSubstitutionEvent;
RenderSubstitution(s.Color,s.EventTime,s.In,s.Out,s.Selected,isExpanded,tk,context,
backgroundArea,cellArea,state);
}elseif(itemisTimelineEvent){
TimelineEventp=itemasTimelineEvent;
RenderPlay(p.Color,p.Miniature,p.Players,p.Selected,p.Description,count,isExpanded,tk,
context,backgroundArea,cellArea,state);
}elseif(itemisPlayer){
RenderPlayer(itemasPlayer,count,isExpanded,tk,context,backgroundArea,cellArea);
}elseif(itemisPlaylist){
RenderPlaylist(itemasPlaylist,count,isExpanded,tk,context,backgroundArea,cellArea);
}elseif(itemisPlaylistPlayElement){
PlaylistPlayElementp=itemasPlaylistPlayElement;
RenderPlay(p.Play.EventType.Color,p.Miniature,null,p.Selected,p.Description,count,isExpanded,tk,
context,backgroundArea,cellArea,state);
}elseif(itemisIPlaylistElement){
IPlaylistElementp=itemasIPlaylistElement;
RenderPlay(Config.Style.PaletteActive,p.Miniature,null,p.Selected,p.Description,
count,isExpanded,tk,context,backgroundArea,cellArea,state);
}else{
Log.Error("Norendererfortype"+item.GetType());
}
}
原文链接:
http://www.jxszl.com/biancheng/C/556704.html