Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1 / DesignTimeVisibleAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class DesignTimeVisibleAttribute : Attribute { private bool visible; ////// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show /// this component on a designer. /// ////// Creates a new DesignTimeVisibleAttribute with the visible /// property set to the given value. /// public DesignTimeVisibleAttribute(bool visible) { this.visible = visible; } ////// Creates a new DesignTimeVisibleAttribute set to the default /// value of true. /// public DesignTimeVisibleAttribute() { } ////// True if this component should be shown at design time, or false /// if it shouldn't. /// public bool Visible { get { return visible; } } ////// Marks a component as visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true); ////// Marks a component as not visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false); ////// The default visiblity. (equal to Yes.) /// public static readonly DesignTimeVisibleAttribute Default = Yes; ////// public override bool Equals(object obj) { if (obj == this) { return true; } DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute; return other != null && other.Visible == visible; } ///[To be supplied.] ////// public override int GetHashCode() { return typeof(DesignTimeVisibleAttribute).GetHashCode() ^ (visible ? -1 : 0); } ///[To be supplied.] ////// public override bool IsDefaultAttribute() { return (this.Visible == Default.Visible); } } }[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- autovalidator.cs
- MailHeaderInfo.cs
- HostingEnvironmentSection.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlBoundElement.cs
- UserControlFileEditor.cs
- PropertyGridView.cs
- Transform3D.cs
- ParserStack.cs
- CultureInfo.cs
- AuthorizationRuleCollection.cs
- XmlAnyElementAttribute.cs
- SqlCaseSimplifier.cs
- SizeConverter.cs
- DtrList.cs
- QueryCursorEventArgs.cs
- LoginUtil.cs
- NamedPermissionSet.cs
- DataGridRowHeader.cs
- ConstraintCollection.cs
- NonBatchDirectoryCompiler.cs
- SemanticResultKey.cs
- XMLUtil.cs
- ReflectEventDescriptor.cs
- HwndProxyElementProvider.cs
- LinkedDataMemberFieldEditor.cs
- XPathArrayIterator.cs
- PerfCounterSection.cs
- PropertyGridCommands.cs
- RotateTransform.cs
- MetadataCollection.cs
- ArraySet.cs
- ArraySortHelper.cs
- FontStyle.cs
- PipeSecurity.cs
- LoadWorkflowByInstanceKeyCommand.cs
- ColumnClickEvent.cs
- X509Utils.cs
- ButtonFieldBase.cs
- CachedPathData.cs
- Int64AnimationBase.cs
- NativeCompoundFileAPIs.cs
- Matrix3DStack.cs
- Ops.cs
- TransformationRules.cs
- ValidationHelpers.cs
- ResXResourceWriter.cs
- LineServicesCallbacks.cs
- ArglessEventHandlerProxy.cs
- TemplateControlParser.cs
- ConnectionProviderAttribute.cs
- TextEditorMouse.cs
- FontStretch.cs
- Inline.cs
- DocumentPageView.cs
- ReservationNotFoundException.cs
- TraceSource.cs
- XPathNodePointer.cs
- TextFragmentEngine.cs
- ComplexPropertyEntry.cs
- ProfessionalColors.cs
- BitmapImage.cs
- WorkflowInstanceExtensionCollection.cs
- FormViewRow.cs
- Accessors.cs
- ByteAnimation.cs
- TextServicesPropertyRanges.cs
- WebConfigurationManager.cs
- NavigatorInput.cs
- XmlSchemaIdentityConstraint.cs
- EntitySetDataBindingList.cs
- RelationshipNavigation.cs
- ActivityTrace.cs
- GenericAuthenticationEventArgs.cs
- mediaeventshelper.cs
- FigureHelper.cs
- CaseKeyBox.xaml.cs
- GridItemCollection.cs
- XPathItem.cs
- DynamicUpdateCommand.cs
- AccessorTable.cs
- WebConfigurationHost.cs
- FlatButtonAppearance.cs
- ExpandSegment.cs
- WS2007HttpBindingElement.cs
- KeyEventArgs.cs
- _AuthenticationState.cs
- ResourceReferenceKeyNotFoundException.cs
- NamespaceEmitter.cs
- SoapIgnoreAttribute.cs
- MaskInputRejectedEventArgs.cs
- DataTableReaderListener.cs
- RegexCompilationInfo.cs
- BufferedStream.cs
- LinqDataSourceDeleteEventArgs.cs
- HotSpotCollection.cs
- CultureInfoConverter.cs
- DesignerLoader.cs
- ManipulationDevice.cs
- EmptyTextWriter.cs