Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / DockingAttribute.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- ObfuscationAttribute.cs
- FontNamesConverter.cs
- HttpRequestBase.cs
- CompilerResults.cs
- SingleQueryOperator.cs
- APCustomTypeDescriptor.cs
- TemplateBaseAction.cs
- List.cs
- ConnectionAcceptor.cs
- DataMemberConverter.cs
- LowerCaseStringConverter.cs
- x509store.cs
- TreeNodeBinding.cs
- ContractReference.cs
- ReversePositionQuery.cs
- BlockCollection.cs
- RenderOptions.cs
- IsolatedStorage.cs
- COM2ExtendedTypeConverter.cs
- CheckableControlBaseAdapter.cs
- SqlRetyper.cs
- RandomNumberGenerator.cs
- AutomationElement.cs
- ModulesEntry.cs
- AudienceUriMode.cs
- CodeSnippetExpression.cs
- Part.cs
- ToggleButton.cs
- RepeaterItem.cs
- XmlSerializerNamespaces.cs
- DataRowChangeEvent.cs
- GridViewUpdatedEventArgs.cs
- Light.cs
- WebBrowserSiteBase.cs
- ContentFileHelper.cs
- BuildProviderUtils.cs
- Certificate.cs
- ParagraphVisual.cs
- MarshalDirectiveException.cs
- XamlParser.cs
- TargetFrameworkUtil.cs
- TypeTypeConverter.cs
- VerticalAlignConverter.cs
- TextSelection.cs
- SessionPageStateSection.cs
- XMLSchema.cs
- DataObjectPastingEventArgs.cs
- FrameworkContentElementAutomationPeer.cs
- ArgumentException.cs
- NotConverter.cs
- MappingException.cs
- SingleStorage.cs
- Stylus.cs
- DataPointer.cs
- RtfNavigator.cs
- PathStreamGeometryContext.cs
- XPathDocumentIterator.cs
- DetailsViewInsertEventArgs.cs
- BmpBitmapDecoder.cs
- HostedImpersonationContext.cs
- ServiceNameElement.cs
- VirtualizedContainerService.cs
- DefaultSection.cs
- SoapParser.cs
- PhysicalFontFamily.cs
- HtmlTableRowCollection.cs
- TabItemWrapperAutomationPeer.cs
- CacheMemory.cs
- Compress.cs
- SHA384.cs
- EntityType.cs
- AuthenticateEventArgs.cs
- MetadataSource.cs
- FileInfo.cs
- ControlPaint.cs
- FileIOPermission.cs
- InfoCardTraceRecord.cs
- ResourcePart.cs
- _ListenerAsyncResult.cs
- ListItemCollection.cs
- ListControlDesigner.cs
- PositiveTimeSpanValidatorAttribute.cs
- TextRangeProviderWrapper.cs
- BinaryFormatterWriter.cs
- TextRangeProviderWrapper.cs
- RecognizerBase.cs
- ExtensionWindow.cs
- MetafileHeaderWmf.cs
- VerificationAttribute.cs
- DeviceSpecificDialogCachedState.cs
- Transform.cs
- M3DUtil.cs
- FileRecordSequence.cs
- EventInfo.cs
- OdbcDataReader.cs
- EncodingDataItem.cs
- ReceiveMessageContent.cs
- OleDbFactory.cs
- BreakRecordTable.cs
- ObjectDataSourceFilteringEventArgs.cs