Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / ToolStripCodeDomSerializer.cs / 1 / ToolStripCodeDomSerializer.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.Design.ToolStripCodeDomSerializer..ctor()")] namespace System.Windows.Forms.Design { using System; using System.Design; using System.CodeDom; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Text; internal class ToolStripCodeDomSerializer: ControlCodeDomSerializer { protected override bool HasSitedNonReadonlyChildren(Control parent) { ToolStrip toolStrip = parent as ToolStrip; if (toolStrip == null) { Debug.Fail("why were we passed a non winbar?"); return false; } if (toolStrip.Items.Count == 0) { return false; } foreach (ToolStripItem item in toolStrip.Items) { if (item.Site != null && toolStrip.Site != null && item.Site.Container == toolStrip.Site.Container) { // We only emit Size/Location information for controls that are sited and not inherrited readonly. InheritanceAttribute ia = (InheritanceAttribute)TypeDescriptor.GetAttributes(item)[typeof(InheritanceAttribute)]; if (ia != null && ia.InheritanceLevel != InheritanceLevel.InheritedReadOnly) { return true; } } } return false; } } } // 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
- SQLUtility.cs
- cache.cs
- ActivityLocationReferenceEnvironment.cs
- OletxDependentTransaction.cs
- HostedElements.cs
- sitestring.cs
- AuthenticationServiceManager.cs
- EmissiveMaterial.cs
- DataService.cs
- AutomationAttributeInfo.cs
- PromptEventArgs.cs
- NodeFunctions.cs
- WinEventWrap.cs
- ProviderSettings.cs
- ProviderConnectionPoint.cs
- SiteMapDataSource.cs
- ReadOnlyDataSourceView.cs
- OracleInternalConnection.cs
- HtmlInputFile.cs
- ViewGenerator.cs
- PropertyEmitterBase.cs
- SafeBitVector32.cs
- SerializationException.cs
- UserPreference.cs
- DrawingImage.cs
- TextRunTypographyProperties.cs
- Command.cs
- DeleteHelper.cs
- StrokeNodeEnumerator.cs
- RawStylusInputReport.cs
- BufferedReadStream.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- VirtualizedItemProviderWrapper.cs
- CalendarDateRange.cs
- EnvironmentPermission.cs
- TransformerConfigurationWizardBase.cs
- DropSource.cs
- CodePageEncoding.cs
- DataContractJsonSerializer.cs
- XmlSchemaElement.cs
- Application.cs
- SqlClientMetaDataCollectionNames.cs
- InfoCardBaseException.cs
- CodeNamespace.cs
- SqlGatherProducedAliases.cs
- ConnectionStringsExpressionEditor.cs
- TableLayoutCellPaintEventArgs.cs
- VerificationException.cs
- UdpTransportBindingElement.cs
- PersonalizationState.cs
- IOException.cs
- ObjectStateManager.cs
- IndexOutOfRangeException.cs
- DataTableTypeConverter.cs
- RegexBoyerMoore.cs
- ConcatQueryOperator.cs
- RawStylusInput.cs
- SystemColors.cs
- HelloMessageCD1.cs
- NamespaceDecl.cs
- List.cs
- PeerObject.cs
- MergeFailedEvent.cs
- SortAction.cs
- GotoExpression.cs
- ImageSourceTypeConverter.cs
- Set.cs
- Stackframe.cs
- PeerResolverBindingElement.cs
- WebCategoryAttribute.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ClientConvert.cs
- AttachedAnnotationChangedEventArgs.cs
- PrintDialogException.cs
- BufferedReadStream.cs
- HttpCookieCollection.cs
- LineInfo.cs
- ReadWriteSpinLock.cs
- DataGridTablesFactory.cs
- DisplayInformation.cs
- PropertyMetadata.cs
- EmbeddedMailObjectCollectionEditor.cs
- AsymmetricCryptoHandle.cs
- XsdBuildProvider.cs
- Subtree.cs
- ResourceProviderFactory.cs
- Profiler.cs
- DataServiceQueryProvider.cs
- RootDesignerSerializerAttribute.cs
- DockingAttribute.cs
- MethodCallTranslator.cs
- ValidatingReaderNodeData.cs
- DrawingVisual.cs
- PopupRoot.cs
- GridViewItemAutomationPeer.cs
- Border.cs
- RegistryKey.cs
- OleAutBinder.cs
- ApplicationServiceManager.cs
- RTLAwareMessageBox.cs