Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- indexingfiltermarshaler.cs
- DataGrid.cs
- ItemsControl.cs
- DeviceContext.cs
- Root.cs
- ErrorStyle.cs
- CryptoApi.cs
- LineServicesRun.cs
- ApplicationSettingsBase.cs
- CodePageEncoding.cs
- SystemEvents.cs
- MatrixTransform.cs
- FeatureSupport.cs
- NullableLongAverageAggregationOperator.cs
- XmlWellformedWriter.cs
- SqlDataSourceSelectingEventArgs.cs
- BuildProviderCollection.cs
- _OSSOCK.cs
- DataSourceXmlElementAttribute.cs
- LinkedResource.cs
- X509InitiatorCertificateServiceElement.cs
- ConnectionManagementElementCollection.cs
- DrawingContextWalker.cs
- ErrorInfoXmlDocument.cs
- LambdaCompiler.Binary.cs
- SqlProviderManifest.cs
- ToolStripItemDataObject.cs
- DataGridTable.cs
- InstalledVoice.cs
- PageRequestManager.cs
- OleDbMetaDataFactory.cs
- FileDialog.cs
- SystemIcons.cs
- IndexedWhereQueryOperator.cs
- XmlNamespaceMapping.cs
- ThicknessConverter.cs
- RequestQueryProcessor.cs
- ProfilePropertyMetadata.cs
- SystemIPGlobalStatistics.cs
- MachineKeyConverter.cs
- PageCatalogPartDesigner.cs
- QueryComponents.cs
- DataGridViewButtonColumn.cs
- DiscoveryClientDuplexChannel.cs
- Menu.cs
- DataRecordInternal.cs
- CompositionAdorner.cs
- UInt32Converter.cs
- TransformationRules.cs
- X509Certificate2Collection.cs
- DbDataSourceEnumerator.cs
- GenericIdentity.cs
- OpenFileDialog.cs
- TdsParameterSetter.cs
- Point3DAnimationUsingKeyFrames.cs
- HandlerFactoryWrapper.cs
- DataKeyCollection.cs
- MobileControlDesigner.cs
- MenuItemBindingCollection.cs
- NullableBoolConverter.cs
- Rectangle.cs
- CustomWebEventKey.cs
- StrokeNode.cs
- HighContrastHelper.cs
- XmlSchemaSimpleContentExtension.cs
- AuthenticatingEventArgs.cs
- FontFamilyValueSerializer.cs
- XmlJsonReader.cs
- ScriptingRoleServiceSection.cs
- SaveFileDialog.cs
- RadialGradientBrush.cs
- SerialPort.cs
- CfgRule.cs
- ScrollableControl.cs
- SHA512Managed.cs
- ProfilePropertyNameValidator.cs
- Util.cs
- ProcessingInstructionAction.cs
- ProviderConnectionPointCollection.cs
- Listbox.cs
- ObjectViewEntityCollectionData.cs
- StylusPlugin.cs
- PropertyIDSet.cs
- WindowHideOrCloseTracker.cs
- XmlArrayAttribute.cs
- FlagsAttribute.cs
- TypeSystem.cs
- ViewBase.cs
- RenderOptions.cs
- ProfileInfo.cs
- SimpleBitVector32.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- AssemblyHash.cs
- TextDpi.cs
- TypedDataSourceCodeGenerator.cs
- CommandHelper.cs
- WindowsSlider.cs
- List.cs
- DataColumnMapping.cs
- TraceHwndHost.cs