Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripArrowRenderEventArgs.cs / 1305376 / ToolStripArrowRenderEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Drawing; ///public class ToolStripArrowRenderEventArgs : EventArgs { private Graphics graphics = null; private Rectangle arrowRect = Rectangle.Empty; private Color arrowColor = Color.Empty; private Color defaultArrowColor = Color.Empty; private ArrowDirection arrowDirection = ArrowDirection.Down; private ToolStripItem item = null; private bool arrowColorChanged = false; /// public ToolStripArrowRenderEventArgs(Graphics g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection) { this.item = toolStripItem; this.graphics = g; this.arrowRect = arrowRectangle; this.defaultArrowColor = arrowColor; this.arrowDirection = arrowDirection; } /// public Rectangle ArrowRectangle { get { return arrowRect; } set { arrowRect = value; } } /// public Color ArrowColor { get { if (arrowColorChanged) { return arrowColor; } return DefaultArrowColor; } set { arrowColor = value; arrowColorChanged = true; } } internal Color DefaultArrowColor { get { return defaultArrowColor; } set { defaultArrowColor = value; } } /// public ArrowDirection Direction { get { return arrowDirection; } set { arrowDirection = value; } } /// public Graphics Graphics { get { return graphics; } } /// public ToolStripItem Item { get { return item; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BevelBitmapEffect.cs
- GreenMethods.cs
- _OverlappedAsyncResult.cs
- ImageDrawing.cs
- Point.cs
- StaticSiteMapProvider.cs
- PtsHost.cs
- PhysicalFontFamily.cs
- FontFamily.cs
- LineServicesCallbacks.cs
- ISAPIApplicationHost.cs
- ServerIdentity.cs
- WeakHashtable.cs
- BamlResourceContent.cs
- IgnoreSection.cs
- HttpListenerContext.cs
- XmlReturnReader.cs
- EntityDataSourceMemberPath.cs
- MessageBox.cs
- DataGridBoolColumn.cs
- TimerElapsedEvenArgs.cs
- StrokeRenderer.cs
- StreamGeometry.cs
- EventSinkHelperWriter.cs
- PartialCachingAttribute.cs
- DoubleMinMaxAggregationOperator.cs
- TableHeaderCell.cs
- DbConnectionPool.cs
- TriggerCollection.cs
- UpdatePanelTrigger.cs
- EvidenceTypeDescriptor.cs
- DataGridDesigner.cs
- PopOutPanel.cs
- TreeNodeCollection.cs
- HttpHandlerActionCollection.cs
- MarginsConverter.cs
- IndexedEnumerable.cs
- TextServicesDisplayAttribute.cs
- XPathEmptyIterator.cs
- DataRecord.cs
- ScrollableControl.cs
- PropertyMapper.cs
- DefaultSerializationProviderAttribute.cs
- NameService.cs
- ProxyHelper.cs
- ProvideValueServiceProvider.cs
- KnownBoxes.cs
- SamlConditions.cs
- StringBuilder.cs
- DefaultCommandConverter.cs
- DataColumnMapping.cs
- MinimizableAttributeTypeConverter.cs
- GeneralTransformCollection.cs
- ExtenderControl.cs
- GridViewEditEventArgs.cs
- ItemCollection.cs
- PrimaryKeyTypeConverter.cs
- FloatUtil.cs
- ContainerParagraph.cs
- TaskExtensions.cs
- BinaryNode.cs
- OleDbDataAdapter.cs
- FormViewDeleteEventArgs.cs
- DataGridColumnHeaderAutomationPeer.cs
- DataQuery.cs
- ServiceModelConfigurationSection.cs
- SafeLibraryHandle.cs
- HttpCookie.cs
- PointCollectionValueSerializer.cs
- TreeNodeStyleCollection.cs
- DesignerActionHeaderItem.cs
- SqlDataSourceView.cs
- CaseInsensitiveComparer.cs
- NavigationFailedEventArgs.cs
- IisTraceWebEventProvider.cs
- UpdateDelegates.Generated.cs
- AddingNewEventArgs.cs
- EncoderReplacementFallback.cs
- BehaviorEditorPart.cs
- DefaultProxySection.cs
- ComboBox.cs
- DataRowView.cs
- MatchingStyle.cs
- PointHitTestResult.cs
- TraceRecord.cs
- WindowsPrincipal.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- entitydatasourceentitysetnameconverter.cs
- TemplateAction.cs
- BamlMapTable.cs
- BitmapEffectGeneralTransform.cs
- XsltCompileContext.cs
- complextypematerializer.cs
- RenderCapability.cs
- cookieexception.cs
- ellipse.cs
- SourceChangedEventArgs.cs
- PrincipalPermission.cs
- TabControl.cs
- DelayedRegex.cs