Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripArrowRenderEventArgs.cs / 1 / 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. //------------------------------------------------------------------------------ // // 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
- ItemCheckedEvent.cs
- PersonalizationDictionary.cs
- UnsafeNativeMethods.cs
- CatalogZoneBase.cs
- ToolboxComponentsCreatingEventArgs.cs
- RenderingBiasValidation.cs
- CodeTryCatchFinallyStatement.cs
- EditorZoneDesigner.cs
- FastEncoderWindow.cs
- HtmlString.cs
- SqlDataSourceView.cs
- ServiceBehaviorElement.cs
- HttpHandlerActionCollection.cs
- ConfigurationSchemaErrors.cs
- SelectionProviderWrapper.cs
- ConfigurationManagerHelperFactory.cs
- RuntimeHandles.cs
- RightsController.cs
- TdsParserSessionPool.cs
- Triplet.cs
- DynamicPropertyHolder.cs
- UnmanagedBitmapWrapper.cs
- DbDataRecord.cs
- StructuredTypeEmitter.cs
- IImplicitResourceProvider.cs
- SecurityAccessDeniedException.cs
- EventLogPermissionEntryCollection.cs
- ModifyActivitiesPropertyDescriptor.cs
- WhitespaceRuleLookup.cs
- MenuAutomationPeer.cs
- ProfileServiceManager.cs
- PresentationSource.cs
- ResourcePool.cs
- SafeRightsManagementPubHandle.cs
- SharedTcpTransportManager.cs
- RuleInfoComparer.cs
- AspNetSynchronizationContext.cs
- CodePageUtils.cs
- LineBreak.cs
- ISFClipboardData.cs
- DataGridViewTopRowAccessibleObject.cs
- GrammarBuilderDictation.cs
- DelegateSerializationHolder.cs
- DispatcherHooks.cs
- ObfuscateAssemblyAttribute.cs
- Choices.cs
- DataControlPagerLinkButton.cs
- SHA1Managed.cs
- BindingExpressionUncommonField.cs
- InkPresenter.cs
- AsymmetricSignatureDeformatter.cs
- SqlOuterApplyReducer.cs
- MergablePropertyAttribute.cs
- FormattedTextSymbols.cs
- SrgsItemList.cs
- GraphicsContainer.cs
- ResourcePermissionBase.cs
- Crc32.cs
- QuaternionValueSerializer.cs
- ListViewAutomationPeer.cs
- ImageSource.cs
- WindowsAltTab.cs
- WorkflowMarkupSerializationProvider.cs
- HttpCacheVary.cs
- WriteFileContext.cs
- BitmapPalette.cs
- CodeAccessPermission.cs
- CategoryGridEntry.cs
- Formatter.cs
- ColumnWidthChangingEvent.cs
- MemberMaps.cs
- ToolStripSeparatorRenderEventArgs.cs
- TabPage.cs
- HttpClientCertificate.cs
- TreeNodeConverter.cs
- SecurityKeyUsage.cs
- PersistChildrenAttribute.cs
- EventProviderWriter.cs
- SystemIPInterfaceProperties.cs
- AuthenticationService.cs
- HybridCollection.cs
- ObjectAnimationUsingKeyFrames.cs
- CultureInfo.cs
- SHA256Managed.cs
- EDesignUtil.cs
- TextEditorMouse.cs
- ColorEditor.cs
- RelationshipDetailsCollection.cs
- TableProvider.cs
- DesignTimeParseData.cs
- XmlArrayItemAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- HttpRuntimeSection.cs
- SortDescriptionCollection.cs
- DocumentEventArgs.cs
- CurrentChangedEventManager.cs
- CodeTypeDelegate.cs
- PermissionSet.cs
- ConstraintEnumerator.cs
- GridViewColumnCollection.cs