Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XPathNavigator.cs
- Exceptions.cs
- Axis.cs
- ObjectViewQueryResultData.cs
- SettingsBase.cs
- ResourcesChangeInfo.cs
- PageBuildProvider.cs
- MembershipValidatePasswordEventArgs.cs
- WebPartsPersonalization.cs
- X509WindowsSecurityToken.cs
- KnownTypeHelper.cs
- RepeatBehaviorConverter.cs
- RenderOptions.cs
- CngKeyBlobFormat.cs
- SafeHandles.cs
- ColumnBinding.cs
- UnsafeNativeMethods.cs
- ConnectionProviderAttribute.cs
- BoundColumn.cs
- JumpTask.cs
- TransportChannelFactory.cs
- DataGridPagerStyle.cs
- AuthenticationService.cs
- XmlQueryCardinality.cs
- LinqDataView.cs
- HtmlShimManager.cs
- TrustManagerMoreInformation.cs
- ContextMenuAutomationPeer.cs
- HandoffBehavior.cs
- __ConsoleStream.cs
- ResourceExpressionBuilder.cs
- SecurityCriticalDataForSet.cs
- FilteredAttributeCollection.cs
- XmlSignatureProperties.cs
- NameValueSectionHandler.cs
- InstanceLockTracking.cs
- InvokeMethodDesigner.xaml.cs
- LicFileLicenseProvider.cs
- CompoundFileReference.cs
- AppendHelper.cs
- Vector3dCollection.cs
- PanelStyle.cs
- OleDbParameter.cs
- JournalNavigationScope.cs
- DigestTraceRecordHelper.cs
- XmlSchemaSimpleContentRestriction.cs
- ValidatorCompatibilityHelper.cs
- EdmProperty.cs
- MatrixStack.cs
- HtmlWindowCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- RegexCompilationInfo.cs
- RawStylusInputCustomDataList.cs
- CommandHelpers.cs
- TTSEngineProxy.cs
- GridViewUpdateEventArgs.cs
- Control.cs
- COM2PropertyPageUITypeConverter.cs
- HashCodeCombiner.cs
- DataGrid.cs
- TextEditorLists.cs
- ProxySimple.cs
- RuntimeCompatibilityAttribute.cs
- ByteStreamMessage.cs
- Events.cs
- WebScriptEnablingElement.cs
- ServiceDebugBehavior.cs
- ResourceDescriptionAttribute.cs
- TextShapeableCharacters.cs
- AQNBuilder.cs
- IisTraceWebEventProvider.cs
- NativeMethods.cs
- PolyLineSegment.cs
- FileDetails.cs
- GeneralTransform2DTo3DTo2D.cs
- MarkupExtensionParser.cs
- SynchronizationLockException.cs
- TokenBasedSet.cs
- DescendantOverDescendantQuery.cs
- IntegerValidatorAttribute.cs
- SelectionRangeConverter.cs
- LoginName.cs
- wmiprovider.cs
- StrokeSerializer.cs
- HyperLinkColumn.cs
- FontStretch.cs
- SaveWorkflowAsyncResult.cs
- SmtpDigestAuthenticationModule.cs
- System.Data_BID.cs
- PlatformCulture.cs
- sqlmetadatafactory.cs
- GeometryModel3D.cs
- UnrecognizedPolicyAssertionElement.cs
- Helper.cs
- ExceptionValidationRule.cs
- FormViewRow.cs
- Point.cs
- ToolBarTray.cs
- SimpleWorkerRequest.cs
- SyndicationPerson.cs