¡@

Home 

c# Programming Glossary: solidbrush

C#: TreeView owner drawing with ownerdrawtext and the weird black highlighting when clicking on a node

http://stackoverflow.com/questions/1003459/c-treeview-owner-drawing-with-ownerdrawtext-and-the-weird-black-highlighting-w

128 128 128 Grad fill the background Brush backBrush new SolidBrush leftColour e.Graphics.FillRectangle backBrush itemRect Faint.. white rectangle to fade the colour a lot Brush bodge new SolidBrush Color.FromArgb Bitfield.IsBitSet e.State TreeNodeStates.Hot.. e.Graphics.DrawString columnTextList iCol textFont new SolidBrush textColour textRect drawFormat textPos.X mColumnWidthList iCol..

Place watermark image on other images (C#, ASP.Net)

http://stackoverflow.com/questions/1224653/place-watermark-image-on-other-images-c-asp-net

float angle gr.DrawString watermarkText font new SolidBrush color new Point int halfHypotenuse 0 stringFormat img.Save outputStream..

Multiple colors in a C# .NET label

http://stackoverflow.com/questions/275836/multiple-colors-in-a-c-sharp-net-label

pb.Image create all white background for drawing SolidBrush brush new SolidBrush Color.White g.FillRectangle brush 0 0 pb.Image.Width.. all white background for drawing SolidBrush brush new SolidBrush Color.White g.FillRectangle brush 0 0 pb.Image.Width pb.Image.Height.. in multiple colors string chunks Text.Split ' ' brush new SolidBrush Color.Black SolidBrush brushes new SolidBrush new SolidBrush..

How do I rotate a label in C#?

http://stackoverflow.com/questions/416897/how-do-i-rotate-a-label-in-c

StringTrimming.None Brush textBrush new SolidBrush this.ForeColor Getting the width and height of the text which..

C# Can I display images in a list box?

http://stackoverflow.com/questions/472897/c-sharp-can-i-display-images-in-a-list-box

a blue background color. e.Graphics.FillRectangle new SolidBrush Color.Blue e.Bounds else The item is NOT selected. We want.. a white background color. e.Graphics.FillRectangle new SolidBrush Color.White e.Bounds Draw the item. string text item.ToString.. text this.Font e.Graphics.DrawString text this.Font new SolidBrush Color.White new PointF 5 e.Bounds.Y e.Bounds.Height stringSize.Height..

TreeView Remove CheckBox by some Nodes

http://stackoverflow.com/questions/4826556/treeview-remove-checkbox-by-some-nodes

e.Node.BackColor foreColor e.Node.ForeColor using SolidBrush brush new SolidBrush backColor e.Graphics.FillRectangle brush.. foreColor e.Node.ForeColor using SolidBrush brush new SolidBrush backColor e.Graphics.FillRectangle brush e.Node.Bounds TextRenderer.DrawText..

Background color of a ListBox item (winforms)

http://stackoverflow.com/questions/91747/background-color-of-a-listbox-item-winforms

e.DrawBackground Graphics g e.Graphics g.FillRectangle new SolidBrush Color.Silver e.Bounds Print text e.DrawFocusRectangle Second..