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
- OverflowException.cs
- BindUriHelper.cs
- SurrogateEncoder.cs
- ToolStripItemEventArgs.cs
- QilGeneratorEnv.cs
- DecodeHelper.cs
- SqlBuilder.cs
- WorkflowPageSetupDialog.cs
- Slider.cs
- NullToBooleanConverter.cs
- ErrorStyle.cs
- ParameterRefs.cs
- DrawingContextWalker.cs
- FlatButtonAppearance.cs
- LedgerEntry.cs
- BitStack.cs
- SchemaType.cs
- FolderBrowserDialog.cs
- Util.cs
- RowCache.cs
- IndexExpression.cs
- KeyValuePairs.cs
- StringInfo.cs
- XmlSerializer.cs
- ListViewItem.cs
- XmlUTF8TextWriter.cs
- HelpEvent.cs
- SecureUICommand.cs
- DataGridViewDataErrorEventArgs.cs
- UnknownWrapper.cs
- XsdDataContractExporter.cs
- SqlStream.cs
- PasswordRecovery.cs
- MDIClient.cs
- RC2CryptoServiceProvider.cs
- EventMappingSettingsCollection.cs
- ViewBase.cs
- PeerCollaboration.cs
- DataSourceComponent.cs
- EnumBuilder.cs
- TraceListener.cs
- WebPartExportVerb.cs
- UrlMapping.cs
- LineGeometry.cs
- SqlConnectionPoolProviderInfo.cs
- NumberFormatter.cs
- StateRuntime.cs
- Decoder.cs
- CqlLexerHelpers.cs
- documentsequencetextcontainer.cs
- PathData.cs
- KnownColorTable.cs
- FormatControl.cs
- DBSchemaRow.cs
- StandardTransformFactory.cs
- DatePickerTextBox.cs
- ScrollViewer.cs
- SystemIPv4InterfaceProperties.cs
- OLEDB_Util.cs
- WindowsUpDown.cs
- HtmlFormAdapter.cs
- clipboard.cs
- MenuItemCollection.cs
- ReadContentAsBinaryHelper.cs
- RsaEndpointIdentity.cs
- ResourceProviderFactory.cs
- SessionParameter.cs
- CodeGeneratorAttribute.cs
- HandlerMappingMemo.cs
- HMACSHA384.cs
- ObjectSecurity.cs
- GlobalizationAssembly.cs
- WindowsFormsSectionHandler.cs
- DataGridViewCellLinkedList.cs
- SQLMoney.cs
- ScrollableControl.cs
- DefaultValueAttribute.cs
- httpserverutility.cs
- SqlBuffer.cs
- InvalidStoreProtectionKeyException.cs
- SqlFunctionAttribute.cs
- RuntimeArgumentHandle.cs
- DrawingAttributeSerializer.cs
- HtmlTextBoxAdapter.cs
- RegexCompilationInfo.cs
- EventSource.cs
- TextEditorTables.cs
- _CookieModule.cs
- DataGridViewAdvancedBorderStyle.cs
- ControllableStoryboardAction.cs
- DataGridViewCheckBoxColumn.cs
- DrawingContextWalker.cs
- WmpBitmapDecoder.cs
- WSSecurityPolicy.cs
- ResourcePermissionBase.cs
- SymbolMethod.cs
- PrintDialog.cs
- PeerNameRecord.cs
- MetadataArtifactLoaderCompositeFile.cs
- RecordsAffectedEventArgs.cs