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
- ReturnEventArgs.cs
- UiaCoreTypesApi.cs
- input.cs
- Queue.cs
- FileRecordSequenceCompletedAsyncResult.cs
- CompareInfo.cs
- CodeTypeReference.cs
- AttachedPropertyDescriptor.cs
- securestring.cs
- SQLDecimalStorage.cs
- UInt32.cs
- TypeResolver.cs
- CachedCompositeFamily.cs
- SecurityToken.cs
- Configuration.cs
- DocumentOrderQuery.cs
- WindowsFormsLinkLabel.cs
- DesignerAutoFormat.cs
- TreeWalker.cs
- ToolBarOverflowPanel.cs
- RewritingPass.cs
- WebConfigurationFileMap.cs
- WeakReferenceList.cs
- DependencyObjectProvider.cs
- SynchronizationLockException.cs
- UIElementCollection.cs
- PropertyBuilder.cs
- FontFamilyConverter.cs
- SqlDataReader.cs
- SmtpAuthenticationManager.cs
- PropertyItemInternal.cs
- StringTraceRecord.cs
- CompiledQueryCacheEntry.cs
- ToolStripSettings.cs
- IntranetCredentialPolicy.cs
- SendMailErrorEventArgs.cs
- HandoffBehavior.cs
- HttpResponseInternalWrapper.cs
- TabControlCancelEvent.cs
- BulletChrome.cs
- CheckableControlBaseAdapter.cs
- OpenTypeCommon.cs
- WasEndpointConfigContainer.cs
- Triplet.cs
- RowVisual.cs
- Helpers.cs
- RandomNumberGenerator.cs
- OdbcErrorCollection.cs
- ColorAnimationBase.cs
- TableStyle.cs
- DataGridViewButtonCell.cs
- DockAndAnchorLayout.cs
- ProtocolsSection.cs
- Attributes.cs
- OdbcHandle.cs
- BoundColumn.cs
- AddInSegmentDirectoryNotFoundException.cs
- Rect3D.cs
- InsufficientExecutionStackException.cs
- SinglePhaseEnlistment.cs
- GridViewRowPresenterBase.cs
- _NativeSSPI.cs
- StringValidatorAttribute.cs
- Permission.cs
- Nodes.cs
- TreeViewHitTestInfo.cs
- UrlPath.cs
- IdentityNotMappedException.cs
- CommandDesigner.cs
- Executor.cs
- NamespaceExpr.cs
- InfoCardTrace.cs
- InputProcessorProfiles.cs
- ManagedFilter.cs
- LambdaCompiler.cs
- CommandDesigner.cs
- ControlCachePolicy.cs
- Assembly.cs
- milexports.cs
- DataGridCommandEventArgs.cs
- PersonalizationState.cs
- ObjectDataSourceFilteringEventArgs.cs
- ButtonStandardAdapter.cs
- XPathSelectionIterator.cs
- DataPagerFieldItem.cs
- AuthorizationRule.cs
- ScriptReferenceEventArgs.cs
- CapiNative.cs
- DesignerFrame.cs
- Native.cs
- CodeAttachEventStatement.cs
- ExpressionEditorAttribute.cs
- UnsafeNativeMethodsPenimc.cs
- RoamingStoreFileUtility.cs
- TextMarkerSource.cs
- RuntimeUtils.cs
- BitmapVisualManager.cs
- _CacheStreams.cs
- PolyBezierSegmentFigureLogic.cs
- FileUtil.cs