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
- SQLRoleProvider.cs
- XmlBinaryReader.cs
- EntityContainerEntitySet.cs
- SelectedDatesCollection.cs
- ThreadInterruptedException.cs
- IncrementalReadDecoders.cs
- ComplexBindingPropertiesAttribute.cs
- SqlDataSourceSummaryPanel.cs
- RankException.cs
- HeaderElement.cs
- BCLDebug.cs
- TextCollapsingProperties.cs
- ExternalFile.cs
- SafeArrayTypeMismatchException.cs
- Instrumentation.cs
- ConstrainedGroup.cs
- ResourceDictionaryCollection.cs
- CacheSection.cs
- XmlDesignerDataSourceView.cs
- WhitespaceRule.cs
- XomlDesignerLoader.cs
- MetadataWorkspace.cs
- Logging.cs
- Stopwatch.cs
- PlatformNotSupportedException.cs
- CellRelation.cs
- ContainerUIElement3D.cs
- TextTrailingWordEllipsis.cs
- NativeActivityAbortContext.cs
- Simplifier.cs
- X509SecurityTokenAuthenticator.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ValidationSettings.cs
- DataGridViewDesigner.cs
- CompilerCollection.cs
- HwndHost.cs
- ErrorItem.cs
- EndOfStreamException.cs
- RemoteX509AsymmetricSecurityKey.cs
- TreeNode.cs
- ProvidersHelper.cs
- codemethodreferenceexpression.cs
- ConfigurationCollectionAttribute.cs
- path.cs
- WebPartEditorOkVerb.cs
- XmlSchemas.cs
- FixedPageStructure.cs
- HttpListenerException.cs
- VirtualizedItemPattern.cs
- PerformanceCounterPermissionAttribute.cs
- CodeArrayIndexerExpression.cs
- unitconverter.cs
- ChangeTracker.cs
- CustomValidator.cs
- CompositeControl.cs
- ListViewGroupItemCollection.cs
- FieldNameLookup.cs
- FileDialog_Vista_Interop.cs
- EncodingTable.cs
- ClientUtils.cs
- ContentType.cs
- SqlMetaData.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- Line.cs
- DataQuery.cs
- _ConnectOverlappedAsyncResult.cs
- COM2PropertyBuilderUITypeEditor.cs
- SmuggledIUnknown.cs
- HTTPNotFoundHandler.cs
- StorageComplexPropertyMapping.cs
- SystemWebCachingSectionGroup.cs
- HtmlTableRowCollection.cs
- TemplateBaseAction.cs
- XslTransform.cs
- TextChangedEventArgs.cs
- InertiaRotationBehavior.cs
- UnsafeNativeMethods.cs
- InstancePersistenceCommandException.cs
- BindToObject.cs
- PropertyValueChangedEvent.cs
- PowerStatus.cs
- ColorTranslator.cs
- NavigationPropertySingletonExpression.cs
- TextEndOfParagraph.cs
- PropertyDescriptorGridEntry.cs
- SqlDataSourceSummaryPanel.cs
- TabletDeviceInfo.cs
- ResponseBodyWriter.cs
- ComponentEditorPage.cs
- SiteMapPath.cs
- _Rfc2616CacheValidators.cs
- DiffuseMaterial.cs
- InternalEnumValidatorAttribute.cs
- SqlDelegatedTransaction.cs
- FrameworkContentElement.cs
- LabelDesigner.cs
- Highlights.cs
- ToolboxComponentsCreatingEventArgs.cs
- ActivityXamlServices.cs
- XmlWriterTraceListener.cs