Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / Behavior / ComponentGlyph.cs / 1 / ComponentGlyph.cs
namespace System.Windows.Forms.Design.Behavior { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms.Design; ////// /// The ComponentGlyph class simply contains a pointer back /// to it's related Component. This can be used to trace /// Glyphs (during drag operations or otherwise) back to /// their component. /// public class ComponentGlyph : Glyph { private IComponent relatedComponent;//ptr back to the component ////// /// Standard constructor. /// public ComponentGlyph(IComponent relatedComponent, Behavior behavior) : base(behavior) { this.relatedComponent = relatedComponent; } public ComponentGlyph(IComponent relatedComponent) : base(null) { this.relatedComponent = relatedComponent; } ////// /// Returns the Component this Glyph is related to. /// public IComponent RelatedComponent { get { return relatedComponent; } } ////// /// Overrides GetHitTest - this implementation does nothing. /// public override Cursor GetHitTest(Point p) { return null; } ////// /// Overrides Glyph::Paint - this implementation does nothing. /// public override void Paint(PaintEventArgs pe) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NameSpaceEvent.cs
- HyperlinkAutomationPeer.cs
- EntitySqlQueryCacheKey.cs
- PageAsyncTask.cs
- HttpRuntimeSection.cs
- FrameworkContextData.cs
- TextBlockAutomationPeer.cs
- NamespaceInfo.cs
- Selector.cs
- XmlSchemaObjectCollection.cs
- SqlXmlStorage.cs
- Expression.cs
- DiffuseMaterial.cs
- CharacterString.cs
- ObjectParameter.cs
- InvalidOleVariantTypeException.cs
- ParsedRoute.cs
- SEHException.cs
- PrivilegedConfigurationManager.cs
- SqlError.cs
- DependencyObject.cs
- PublisherMembershipCondition.cs
- PublisherMembershipCondition.cs
- EntityParameterCollection.cs
- TdsParserHelperClasses.cs
- AuthenticationService.cs
- AppearanceEditorPart.cs
- ToolBarButtonDesigner.cs
- HttpListenerRequestTraceRecord.cs
- SimpleMailWebEventProvider.cs
- ComboBox.cs
- ByteStorage.cs
- MetafileHeaderWmf.cs
- ToolStripRendererSwitcher.cs
- Int32Converter.cs
- SqlBuffer.cs
- DoubleStorage.cs
- FixedHighlight.cs
- UrlAuthFailedErrorFormatter.cs
- RemotingConfigParser.cs
- SchemaComplexType.cs
- ServiceModelConfigurationElementCollection.cs
- Wizard.cs
- HealthMonitoringSectionHelper.cs
- objectresult_tresulttype.cs
- MobileControlsSection.cs
- ToolStripDropDownDesigner.cs
- ResourceDescriptionAttribute.cs
- _AutoWebProxyScriptEngine.cs
- Configuration.cs
- AsyncPostBackErrorEventArgs.cs
- BStrWrapper.cs
- Opcode.cs
- PointAnimation.cs
- BrowserInteropHelper.cs
- NamespaceCollection.cs
- Pkcs7Signer.cs
- MenuItemCollectionEditorDialog.cs
- COM2ColorConverter.cs
- PropertyMap.cs
- SafeFileMappingHandle.cs
- UInt32.cs
- WebException.cs
- XmlNamespaceDeclarationsAttribute.cs
- TimerElapsedEvenArgs.cs
- MethodSet.cs
- HostingEnvironmentSection.cs
- FileUpload.cs
- OdbcUtils.cs
- UIElementPropertyUndoUnit.cs
- SoapHeaderException.cs
- ConditionedDesigner.cs
- AppliedDeviceFiltersEditor.cs
- ContentValidator.cs
- ContentValidator.cs
- AspNetSynchronizationContext.cs
- ObjectDataSourceDisposingEventArgs.cs
- InstanceStore.cs
- CancelRequestedRecord.cs
- diagnosticsswitches.cs
- SignedXml.cs
- Conditional.cs
- MDIWindowDialog.cs
- Attachment.cs
- EditingMode.cs
- ToolStripLocationCancelEventArgs.cs
- ModuleBuilderData.cs
- ServiceDeploymentInfo.cs
- WaitForChangedResult.cs
- SqlLiftWhereClauses.cs
- LinqDataSourceSelectEventArgs.cs
- MouseOverProperty.cs
- DrawTreeNodeEventArgs.cs
- DebuggerAttributes.cs
- SafeNativeHandle.cs
- Location.cs
- BindingNavigator.cs
- ScriptManagerProxy.cs
- DuplicateWaitObjectException.cs
- ThreadInterruptedException.cs