Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DockingAttribute.cs / 1305376 / DockingAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// /// [AttributeUsage(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute { private DockingBehavior dockingBehavior; ////// Specifies how a control should be docked by default when added through the designer. /// ////// /// public DockingAttribute() { this.dockingBehavior = DockingBehavior.Never; } ////// Default constructor. /// ////// /// public DockingAttribute(DockingBehavior dockingBehavior) { this.dockingBehavior = dockingBehavior; } ////// Constructor. /// ////// /// public static readonly DockingAttribute Default = new DockingAttribute(); ////// Specifies the default value for the ///. /// This field is read-only. /// /// /// public DockingBehavior DockingBehavior { get { return dockingBehavior; } } ////// DockingBehavior property. /// ////// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } DockingAttribute other = obj as DockingAttribute; return (other != null) && other.DockingBehavior == this.dockingBehavior; } ////// /// public override int GetHashCode() { return dockingBehavior.GetHashCode(); } ///[To be supplied.] ////// /// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- util.cs
- AttributeEmitter.cs
- EventLogTraceListener.cs
- CustomTrackingQuery.cs
- XomlCompilerError.cs
- OleDbException.cs
- _SSPIWrapper.cs
- SizeKeyFrameCollection.cs
- GetPageCompletedEventArgs.cs
- CodeStatementCollection.cs
- TransformPattern.cs
- SystemInfo.cs
- mongolianshape.cs
- SqlWriter.cs
- ParseHttpDate.cs
- PersonalizationAdministration.cs
- GenericUriParser.cs
- QuadTree.cs
- ComponentDispatcherThread.cs
- UIntPtr.cs
- CustomTypeDescriptor.cs
- RepeaterItem.cs
- AssemblyInfo.cs
- TextAdaptor.cs
- MostlySingletonList.cs
- TypeUnloadedException.cs
- UnsafeMethods.cs
- ButtonFlatAdapter.cs
- DocumentGrid.cs
- ITreeGenerator.cs
- ISCIIEncoding.cs
- MembershipSection.cs
- HtmlInputRadioButton.cs
- WebPartUtil.cs
- ExpressionBindings.cs
- AggregationMinMaxHelpers.cs
- Query.cs
- CryptoProvider.cs
- LocalizationParserHooks.cs
- GenericTextProperties.cs
- ToolZone.cs
- documentsequencetextcontainer.cs
- ScaleTransform3D.cs
- MimeMultiPart.cs
- MethodBuilderInstantiation.cs
- FileSystemInfo.cs
- ReferencedAssembly.cs
- StateChangeEvent.cs
- InvalidProgramException.cs
- PointConverter.cs
- oledbmetadatacolumnnames.cs
- DecoderFallback.cs
- _ScatterGatherBuffers.cs
- SurrogateChar.cs
- WorkflowDataContext.cs
- Pointer.cs
- InkPresenterAutomationPeer.cs
- ProviderConnectionPoint.cs
- IndexerReference.cs
- DecimalKeyFrameCollection.cs
- ProfileGroupSettingsCollection.cs
- ListViewTableRow.cs
- ContentElementAutomationPeer.cs
- CustomExpressionEventArgs.cs
- DataTemplateKey.cs
- XmlTextEncoder.cs
- FileRegion.cs
- UpdateTranslator.cs
- CreateParams.cs
- NavigationWindowAutomationPeer.cs
- NotifyIcon.cs
- AttachmentService.cs
- FileCodeGroup.cs
- RequiredFieldValidator.cs
- PolyBezierSegment.cs
- OleDbCommandBuilder.cs
- TemplateField.cs
- Control.cs
- EpmTargetTree.cs
- Rectangle.cs
- AmbientLight.cs
- OleDbRowUpdatedEvent.cs
- OrthographicCamera.cs
- Base64Stream.cs
- QilIterator.cs
- FolderNameEditor.cs
- PresentationAppDomainManager.cs
- DBConnectionString.cs
- ColorComboBox.cs
- PagesSection.cs
- SqlUserDefinedAggregateAttribute.cs
- CodeAccessSecurityEngine.cs
- SwitchLevelAttribute.cs
- SafeHandles.cs
- TypeElement.cs
- DataGridLinkButton.cs
- AssemblyCache.cs
- KeyConverter.cs
- ExpressionReplacer.cs
- RuntimeVariablesExpression.cs