Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Misc / ImageListUtils.cs / 1 / ImageListUtils.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; // Miscellaneous utilities static internal class ImageListUtils { public static PropertyDescriptor GetImageListProperty(PropertyDescriptor currentComponent, ref object instance) { if(instance is object[]) //multiple selection is not supported by this class return null; PropertyDescriptor imageListProp = null; object parentInstance = instance; RelatedImageListAttribute relILAttr = currentComponent.Attributes[typeof(RelatedImageListAttribute)] as RelatedImageListAttribute; if (relILAttr != null) { string[] pathInfo = relILAttr.RelatedImageList.Split('.'); for(int i=0;i
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MarshalByRefObject.cs
- MessageFilterTable.cs
- MessageQueue.cs
- AppDomainGrammarProxy.cs
- EncoderBestFitFallback.cs
- SqlDataSourceRefreshSchemaForm.cs
- DataGridColumn.cs
- DataControlFieldCollection.cs
- SectionXmlInfo.cs
- wmiprovider.cs
- DefaultPropertyAttribute.cs
- HttpCookieCollection.cs
- CodeGenerationManager.cs
- DocumentViewerConstants.cs
- RC2CryptoServiceProvider.cs
- ExpressionBuilder.cs
- ConfigXmlComment.cs
- InstanceStore.cs
- AppSettingsReader.cs
- MgmtConfigurationRecord.cs
- SoapSchemaMember.cs
- AsyncPostBackErrorEventArgs.cs
- ObjectIDGenerator.cs
- ContainerParagraph.cs
- WebScriptMetadataMessage.cs
- XamlTemplateSerializer.cs
- DBBindings.cs
- ObjectHelper.cs
- XmlIgnoreAttribute.cs
- GridLengthConverter.cs
- KeyTimeConverter.cs
- FileStream.cs
- Type.cs
- BitmapEffectInput.cs
- DefaultWorkflowSchedulerService.cs
- TrackBarRenderer.cs
- DataPagerField.cs
- LoginStatusDesigner.cs
- WebPartEditorOkVerb.cs
- HebrewNumber.cs
- FixedSOMFixedBlock.cs
- GlyphRun.cs
- SmiXetterAccessMap.cs
- Compiler.cs
- WrapPanel.cs
- SynchronizationLockException.cs
- ISAPIRuntime.cs
- SessionViewState.cs
- CodeMemberProperty.cs
- CompositeControl.cs
- SendSecurityHeaderElementContainer.cs
- TemplateControlBuildProvider.cs
- CachedTypeface.cs
- RoleManagerSection.cs
- RequiredFieldValidator.cs
- xml.cs
- Int32Storage.cs
- unsafenativemethodsother.cs
- SystemIPAddressInformation.cs
- AssemblyCache.cs
- Expressions.cs
- WebBrowser.cs
- EntityDataSourceWrapper.cs
- DerivedKeySecurityTokenStub.cs
- ProviderUtil.cs
- LinqDataSourceContextData.cs
- SqlSupersetValidator.cs
- ExcCanonicalXml.cs
- FormsAuthenticationEventArgs.cs
- PreservationFileReader.cs
- RectangleHotSpot.cs
- RtfControlWordInfo.cs
- FontSource.cs
- WebUtil.cs
- DataKey.cs
- DbConnectionPoolGroupProviderInfo.cs
- PropertyMapper.cs
- WebEventCodes.cs
- RowParagraph.cs
- DebugInfoExpression.cs
- ContextActivityUtils.cs
- ActiveXContainer.cs
- XmlMemberMapping.cs
- CompilerCollection.cs
- ExpandCollapseProviderWrapper.cs
- BidOverLoads.cs
- DesignerActionHeaderItem.cs
- KeyValueInternalCollection.cs
- IdentityReference.cs
- PointLight.cs
- AtomicFile.cs
- Encoder.cs
- PageTheme.cs
- XmlSortKey.cs
- ValidationError.cs
- FeedUtils.cs
- _KerberosClient.cs
- TemplateControlParser.cs
- EventEntry.cs
- ToolStripRenderer.cs