Code:
/ FX-1434 / FX-1434 / 1.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
- Unit.cs
- WasHostedComPlusFactory.cs
- WebPartManager.cs
- SQLInt64.cs
- SqlCommandSet.cs
- SecurityCriticalDataForSet.cs
- DrawingContextWalker.cs
- securitycriticaldata.cs
- SqlExpander.cs
- XamlVector3DCollectionSerializer.cs
- EndpointAddressMessageFilter.cs
- TextDataBindingHandler.cs
- AuthenticationModulesSection.cs
- ReflectEventDescriptor.cs
- ToolStripItemDesigner.cs
- ServiceProviders.cs
- File.cs
- DataGridTablesFactory.cs
- SessionState.cs
- ListBoxItemWrapperAutomationPeer.cs
- WorkflowFormatterBehavior.cs
- DNS.cs
- Interlocked.cs
- XmlCharCheckingWriter.cs
- AuthorizationContext.cs
- AttributeEmitter.cs
- FormViewRow.cs
- TextMetrics.cs
- SqlMethodAttribute.cs
- PolicyFactory.cs
- DataGridCell.cs
- ListBase.cs
- ISessionStateStore.cs
- CounterCreationDataCollection.cs
- BasicBrowserDialog.cs
- XmlResolver.cs
- SoapHeaderAttribute.cs
- EdmProviderManifest.cs
- RefType.cs
- PropertyChangingEventArgs.cs
- WebPartCloseVerb.cs
- ComNativeDescriptor.cs
- unsafenativemethodsother.cs
- HostedElements.cs
- BreakSafeBase.cs
- DocumentGrid.cs
- WindowPatternIdentifiers.cs
- HyperLink.cs
- InvokeBinder.cs
- SiteMapHierarchicalDataSourceView.cs
- DocumentOrderQuery.cs
- LocalizableAttribute.cs
- CompleteWizardStep.cs
- FixedTextView.cs
- StorageAssociationTypeMapping.cs
- NullRuntimeConfig.cs
- ListSortDescriptionCollection.cs
- ServiceEndpointElementCollection.cs
- ItemsPanelTemplate.cs
- ResourceDescriptionAttribute.cs
- BitmapCodecInfo.cs
- BitmapScalingModeValidation.cs
- NetWebProxyFinder.cs
- EdmComplexPropertyAttribute.cs
- UserControlBuildProvider.cs
- EntityDataSourceContainerNameItem.cs
- OpCellTreeNode.cs
- NullReferenceException.cs
- DataFormats.cs
- CustomErrorsSection.cs
- DataGridViewAccessibleObject.cs
- EntitySqlException.cs
- SymbolEqualComparer.cs
- BlobPersonalizationState.cs
- HostingPreferredMapPath.cs
- QueryHandler.cs
- DateTimeStorage.cs
- StorageEntitySetMapping.cs
- FormViewPagerRow.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- BaseResourcesBuildProvider.cs
- CounterSampleCalculator.cs
- PrimaryKeyTypeConverter.cs
- InternalRelationshipCollection.cs
- PrePrepareMethodAttribute.cs
- _StreamFramer.cs
- MethodExpression.cs
- GuidelineSet.cs
- PageCache.cs
- DataGridDetailsPresenterAutomationPeer.cs
- Keywords.cs
- EntityTypeEmitter.cs
- OrderedDictionaryStateHelper.cs
- oledbconnectionstring.cs
- ThicknessConverter.cs
- OracleFactory.cs
- AttributeUsageAttribute.cs
- DirectoryLocalQuery.cs
- WebPartManager.cs
- SynchronizedInputAdaptor.cs