VitNX_ToolStripRenderer.InitializeItem Method
        
		
       
       
        When overridden in a derived class, provides for custom initialization of the given ToolStripItem.
		
	
	
	
		
		
			
	
			
				
				
				
				
					This language is not supported or no code example is available.
			
				 
			 
		 
		
		
	 
	Parameters
	- 
		
			item
		
	
- 
		ToolStripItem 
	
	The ToolStripItem to be initialized. 
	 
 
	
		
				
			
	
			
				
				
				
					
protected override void InitializeItem(ToolStripItem item)
 {
     base.InitializeItem(item);
 
     if (item.GetType() == typeof(ToolStripSeparator))
     {
         var castItem = (ToolStripSeparator)item;
         if (!castItem.IsOnDropDown)
             item.Margin = new Padding(0, 0, 2, 0);
     }
 
     if (item.GetType() == typeof(ToolStripButton))
     {
         item.AutoSize = false;
         item.Size = new Size(24, 24);
     }
 }
								
				 
				
					This language is not supported or no code example is available.
			
				 
			 
		 
	 					
 
  
  
	
	
	
	
	
	
		
  
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
  .NET Core
Supported in: 5.0+, 6.0+