Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Misc / ImageListUtils.cs / 1305376 / 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
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- APCustomTypeDescriptor.cs
- DataBinder.cs
- DataGridViewUtilities.cs
- SerializationAttributes.cs
- HttpMethodAttribute.cs
- HtmlEmptyTagControlBuilder.cs
- ErasingStroke.cs
- AdditionalEntityFunctions.cs
- DbExpressionRules.cs
- DerivedKeySecurityTokenStub.cs
- TableRowCollection.cs
- FacetEnabledSchemaElement.cs
- SwitchElementsCollection.cs
- ConstructorNeedsTagAttribute.cs
- MethodExecutor.cs
- TripleDESCryptoServiceProvider.cs
- ControlAdapter.cs
- NativeMethods.cs
- Panel.cs
- WsatAdminException.cs
- X509Chain.cs
- ValueType.cs
- SmtpAuthenticationManager.cs
- LinkedResourceCollection.cs
- ListItemConverter.cs
- ToolboxItem.cs
- ScaleTransform3D.cs
- ISessionStateStore.cs
- OletxVolatileEnlistment.cs
- ChannelSinkStacks.cs
- ObjectDataSourceStatusEventArgs.cs
- xamlnodes.cs
- QuotedPrintableStream.cs
- InfiniteTimeSpanConverter.cs
- RefreshPropertiesAttribute.cs
- Compiler.cs
- ToolStripSeparatorRenderEventArgs.cs
- AesManaged.cs
- ConnectorMovedEventArgs.cs
- XPathScanner.cs
- NamedObject.cs
- PathSegment.cs
- DBDataPermissionAttribute.cs
- XmlSchemaCollection.cs
- ProxyElement.cs
- MultiPartWriter.cs
- Roles.cs
- CompiledIdentityConstraint.cs
- StringFunctions.cs
- MsmqBindingMonitor.cs
- RuntimeEnvironment.cs
- ColorIndependentAnimationStorage.cs
- DetailsViewPagerRow.cs
- NameTable.cs
- AnimationStorage.cs
- SystemIPInterfaceProperties.cs
- Variable.cs
- BatchWriter.cs
- XMLSchema.cs
- ToolStripPanelCell.cs
- DetailsViewDesigner.cs
- MediaTimeline.cs
- ToolStripRendererSwitcher.cs
- StaticSiteMapProvider.cs
- RuntimeEnvironment.cs
- WhitespaceRule.cs
- MultipleViewPattern.cs
- TableCell.cs
- CompilerTypeWithParams.cs
- Tablet.cs
- TdsEnums.cs
- RegionData.cs
- GeneratedCodeAttribute.cs
- ValidationHelper.cs
- OutputCacheSettings.cs
- XappLauncher.cs
- CodeVariableReferenceExpression.cs
- GenericUriParser.cs
- OutgoingWebRequestContext.cs
- HtmlInputControl.cs
- ImageConverter.cs
- CursorInteropHelper.cs
- ConfigurationValidatorAttribute.cs
- CommandCollectionEditor.cs
- ViewGenResults.cs
- HtmlMeta.cs
- _CookieModule.cs
- SystemInfo.cs
- MatrixKeyFrameCollection.cs
- CompoundFileIOPermission.cs
- DefaultPropertiesToSend.cs
- Link.cs
- ExpressionBuilder.cs
- TraceHandlerErrorFormatter.cs
- PolyQuadraticBezierSegment.cs
- RegexCapture.cs
- WebHttpBindingElement.cs
- Array.cs
- querybuilder.cs
- ExpressionCopier.cs