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
- UnorderedHashRepartitionStream.cs
- ManualResetEventSlim.cs
- MissingFieldException.cs
- Literal.cs
- FunctionMappingTranslator.cs
- RouteUrlExpressionBuilder.cs
- HTMLTextWriter.cs
- HtmlElementErrorEventArgs.cs
- PageContentAsyncResult.cs
- _ListenerAsyncResult.cs
- QilStrConcatenator.cs
- BinaryObjectWriter.cs
- JpegBitmapEncoder.cs
- StreamWriter.cs
- FileDialogCustomPlacesCollection.cs
- BStrWrapper.cs
- CaseExpr.cs
- ApplicationSettingsBase.cs
- BasicKeyConstraint.cs
- DataObjectAttribute.cs
- ProcessHostFactoryHelper.cs
- DataGrid.cs
- FormatVersion.cs
- GenericIdentity.cs
- MethodToken.cs
- DataServiceQuery.cs
- HighContrastHelper.cs
- UnauthorizedAccessException.cs
- SqlDeflator.cs
- DataKey.cs
- DataBindEngine.cs
- CultureTableRecord.cs
- DynamicMetaObjectBinder.cs
- PropertyReferenceExtension.cs
- OrthographicCamera.cs
- ApplyHostConfigurationBehavior.cs
- ClientTargetSection.cs
- GridToolTip.cs
- SyntaxCheck.cs
- AutoCompleteStringCollection.cs
- IntranetCredentialPolicy.cs
- OutputCacheModule.cs
- DataGridViewDataErrorEventArgs.cs
- CodeGotoStatement.cs
- StringKeyFrameCollection.cs
- SharedConnectionInfo.cs
- Control.cs
- ButtonFlatAdapter.cs
- ManagementPath.cs
- DataGridItemEventArgs.cs
- ellipse.cs
- FigureParaClient.cs
- PeerInvitationResponse.cs
- WindowProviderWrapper.cs
- WebServiceEnumData.cs
- CompressionTransform.cs
- Win32MouseDevice.cs
- ConfigUtil.cs
- WebConfigurationManager.cs
- InternalControlCollection.cs
- RequestCacheValidator.cs
- PTManager.cs
- SimpleHandlerFactory.cs
- HashHelper.cs
- TextureBrush.cs
- ButtonPopupAdapter.cs
- Message.cs
- CompleteWizardStep.cs
- SerializableAttribute.cs
- TraceContextEventArgs.cs
- ConfigurationValidatorAttribute.cs
- ServiceAuthorizationManager.cs
- StrokeCollection.cs
- CommandID.cs
- SoapIgnoreAttribute.cs
- TransactionManager.cs
- ImportDesigner.xaml.cs
- DiffuseMaterial.cs
- DbgUtil.cs
- TypeGeneratedEventArgs.cs
- DocumentEventArgs.cs
- ContainerFilterService.cs
- HttpPostProtocolReflector.cs
- EntityDataSourceSelectingEventArgs.cs
- SafeSecurityHelper.cs
- TitleStyle.cs
- DataKeyCollection.cs
- ViewgenGatekeeper.cs
- TextAction.cs
- ZipIOLocalFileHeader.cs
- DataPagerCommandEventArgs.cs
- FlowDocumentView.cs
- SqlDataSourceQueryConverter.cs
- CodeDomComponentSerializationService.cs
- VirtualPath.cs
- Socket.cs
- DbCommandDefinition.cs
- DesignerLoader.cs
- MultiDataTrigger.cs
- UIPermission.cs