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 {
///
///
///
/// Specifies how a control should be docked by default when added through the designer.
///
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class DockingAttribute : Attribute {
private DockingBehavior dockingBehavior;
///
///
///
/// Default constructor.
///
///
public DockingAttribute() {
this.dockingBehavior = DockingBehavior.Never;
}
///
///
///
/// Constructor.
///
///
public DockingAttribute(DockingBehavior dockingBehavior) {
this.dockingBehavior = dockingBehavior;
}
///
///
///
/// Specifies the default value for the .
/// This field is read-only.
///
///
public static readonly DockingAttribute Default = new DockingAttribute();
///
///
///
/// DockingBehavior property.
///
///
public DockingBehavior DockingBehavior {
get {
return dockingBehavior;
}
}
///
///
///
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
DockingAttribute other = obj as DockingAttribute;
return (other != null) && other.DockingBehavior == this.dockingBehavior;
}
///
///
/// [To be supplied.]
///
public override int GetHashCode() {
return dockingBehavior.GetHashCode();
}
///
///
///
///
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 {
///
///
///
/// Specifies how a control should be docked by default when added through the designer.
///
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class DockingAttribute : Attribute {
private DockingBehavior dockingBehavior;
///
///
///
/// Default constructor.
///
///
public DockingAttribute() {
this.dockingBehavior = DockingBehavior.Never;
}
///
///
///
/// Constructor.
///
///
public DockingAttribute(DockingBehavior dockingBehavior) {
this.dockingBehavior = dockingBehavior;
}
///
///
///
/// Specifies the default value for the .
/// This field is read-only.
///
///
public static readonly DockingAttribute Default = new DockingAttribute();
///
///
///
/// DockingBehavior property.
///
///
public DockingBehavior DockingBehavior {
get {
return dockingBehavior;
}
}
///
///
///
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
DockingAttribute other = obj as DockingAttribute;
return (other != null) && other.DockingBehavior == this.dockingBehavior;
}
///
///
/// [To be supplied.]
///
public override int GetHashCode() {
return dockingBehavior.GetHashCode();
}
///
///
///
///
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
- SmiMetaDataProperty.cs
- ActivityTypeDesigner.xaml.cs
- SecurityDescriptor.cs
- SoapReflectionImporter.cs
- XmlILModule.cs
- BuilderPropertyEntry.cs
- Oci.cs
- Oid.cs
- CodeCatchClause.cs
- PassportAuthenticationModule.cs
- HyperLinkField.cs
- WsdlBuildProvider.cs
- SecurityChannelListener.cs
- CryptoHelper.cs
- QilCloneVisitor.cs
- DockingAttribute.cs
- Document.cs
- CursorInteropHelper.cs
- LZCodec.cs
- IntSecurity.cs
- HttpWebRequest.cs
- BamlLocalizableResourceKey.cs
- SpecularMaterial.cs
- Decimal.cs
- TextRangeSerialization.cs
- HttpContext.cs
- XmlSchemaAll.cs
- Currency.cs
- FacetEnabledSchemaElement.cs
- ContentPlaceHolder.cs
- OperatingSystem.cs
- ByteConverter.cs
- TransportContext.cs
- AnimationClock.cs
- EventHandlersStore.cs
- SystemInformation.cs
- KnownBoxes.cs
- ConfigurationPermission.cs
- MappableObjectManager.cs
- OletxTransactionFormatter.cs
- RSAPKCS1SignatureFormatter.cs
- SolidColorBrush.cs
- OdbcCommand.cs
- IPPacketInformation.cs
- Comparer.cs
- DynamicQueryableWrapper.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DesignObjectWrapper.cs
- ScriptControlDescriptor.cs
- WebResourceUtil.cs
- CompressedStack.cs
- WebPartEditVerb.cs
- DataGridViewAutoSizeModeEventArgs.cs
- MatchingStyle.cs
- ResourceReferenceExpression.cs
- Transform3DGroup.cs
- FilteredXmlReader.cs
- ContextMenu.cs
- CustomAttribute.cs
- TransformPattern.cs
- Token.cs
- RegionData.cs
- BidPrivateBase.cs
- Constraint.cs
- AspNetRouteServiceHttpHandler.cs
- OdbcErrorCollection.cs
- AssemblyCollection.cs
- Section.cs
- ResourceWriter.cs
- TreeViewCancelEvent.cs
- SrgsElementFactory.cs
- PageContentCollection.cs
- DataSvcMapFileSerializer.cs
- HyperLinkStyle.cs
- LocatorBase.cs
- PriorityQueue.cs
- BitmapEffectGroup.cs
- ScrollBar.cs
- QilReference.cs
- PipelineModuleStepContainer.cs
- String.cs
- WebConvert.cs
- PageCanvasSize.cs
- PanningMessageFilter.cs
- ScriptServiceAttribute.cs
- DataServiceException.cs
- XmlHierarchyData.cs
- CompressedStack.cs
- TripleDES.cs
- GridViewUpdatedEventArgs.cs
- InvalidPrinterException.cs
- SystemIPv4InterfaceProperties.cs
- DataListItemCollection.cs
- TreeNodeStyleCollection.cs
- wgx_commands.cs
- EntityFunctions.cs
- PropertyEntry.cs
- CacheSection.cs
- Gdiplus.cs
- latinshape.cs