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
- HttpCookie.cs
- SBCSCodePageEncoding.cs
- ISAPIRuntime.cs
- MemberRelationshipService.cs
- RedistVersionInfo.cs
- ToolStripDropDownClosedEventArgs.cs
- StyleSheetDesigner.cs
- BitmapFrameDecode.cs
- TypeDescriptor.cs
- DataGrid.cs
- BezierSegment.cs
- X509IssuerSerialKeyIdentifierClause.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XmlSchemaProviderAttribute.cs
- DataSetFieldSchema.cs
- _ConnectionGroup.cs
- XmlSchemaSimpleTypeList.cs
- ListViewDataItem.cs
- CqlParserHelpers.cs
- BuildDependencySet.cs
- MexHttpBindingElement.cs
- LambdaCompiler.cs
- SubclassTypeValidatorAttribute.cs
- TreeBuilder.cs
- TransformerConfigurationWizardBase.cs
- InstanceData.cs
- ColumnMapTranslator.cs
- SqlDataSourceStatusEventArgs.cs
- SimpleBitVector32.cs
- Component.cs
- XNodeSchemaApplier.cs
- QueryReaderSettings.cs
- ColorTransform.cs
- GeneralTransformGroup.cs
- PkcsUtils.cs
- TextOptions.cs
- objectquery_tresulttype.cs
- XXXInfos.cs
- DataConnectionHelper.cs
- SafeUserTokenHandle.cs
- DocumentApplicationJournalEntry.cs
- Size3D.cs
- DrawingContextDrawingContextWalker.cs
- ColorConvertedBitmapExtension.cs
- HttpListenerResponse.cs
- DataColumnMappingCollection.cs
- TimeZone.cs
- ConfigsHelper.cs
- StartFileNameEditor.cs
- RightNameExpirationInfoPair.cs
- documentsequencetextview.cs
- InstancePersistenceContext.cs
- TypeDescriptor.cs
- DateTimePicker.cs
- ViewValidator.cs
- XmlNamedNodeMap.cs
- FieldAccessException.cs
- LocatorBase.cs
- AspNetHostingPermission.cs
- PanelDesigner.cs
- CollectionViewSource.cs
- SmtpFailedRecipientsException.cs
- GifBitmapDecoder.cs
- SynchronizingStream.cs
- EmbeddedMailObjectsCollection.cs
- DataGridViewLinkColumn.cs
- SqlDataSource.cs
- HwndAppCommandInputProvider.cs
- HierarchicalDataSourceControl.cs
- SqlDependencyUtils.cs
- DayRenderEvent.cs
- GACIdentityPermission.cs
- GPRECT.cs
- Misc.cs
- ApplicationCommands.cs
- Command.cs
- QuaternionAnimationUsingKeyFrames.cs
- InstanceLockedException.cs
- DataTableMapping.cs
- SqlDataSourceCustomCommandEditor.cs
- TagPrefixInfo.cs
- CodeAttachEventStatement.cs
- ServiceDesigner.xaml.cs
- MenuItemStyleCollection.cs
- NamespaceMapping.cs
- complextypematerializer.cs
- MediaTimeline.cs
- LogExtent.cs
- ComboBoxRenderer.cs
- Mapping.cs
- OracleNumber.cs
- BrowserDefinition.cs
- ViewStateModeByIdAttribute.cs
- ProviderCollection.cs
- MsmqMessage.cs
- login.cs
- MetafileHeaderWmf.cs
- OdbcUtils.cs
- ObjectPersistData.cs
- PersonalizationStateInfoCollection.cs