Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1 / GradientSpreadMethodValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // 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
- SectionRecord.cs
- EventSourceCreationData.cs
- ISCIIEncoding.cs
- ManagedWndProcTracker.cs
- DynamicPhysicalDiscoSearcher.cs
- Keyboard.cs
- ThemeInfoAttribute.cs
- UInt32Storage.cs
- ResolvePPIDRequest.cs
- Thread.cs
- ContentType.cs
- TransformProviderWrapper.cs
- ListManagerBindingsCollection.cs
- ImageMapEventArgs.cs
- PrinterSettings.cs
- WebPartDisplayModeCancelEventArgs.cs
- MethodBuilderInstantiation.cs
- StackBuilderSink.cs
- RuleElement.cs
- IProvider.cs
- TypefaceCollection.cs
- SHA512Managed.cs
- Calendar.cs
- RowTypeElement.cs
- MenuScrollingVisibilityConverter.cs
- SymbolUsageManager.cs
- XsdDataContractExporter.cs
- DispatcherExceptionEventArgs.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- HostUtils.cs
- ApplicationGesture.cs
- UserPreferenceChangingEventArgs.cs
- Int32Animation.cs
- InternalConfigSettingsFactory.cs
- PropertyEmitter.cs
- HtmlInputRadioButton.cs
- PointHitTestParameters.cs
- SafeArrayTypeMismatchException.cs
- ObjectDataSourceView.cs
- DictionaryEntry.cs
- XamlPoint3DCollectionSerializer.cs
- RightsManagementPermission.cs
- DiscoveryDocument.cs
- DataAccessor.cs
- CellLabel.cs
- StickyNoteHelper.cs
- ActivityBuilderHelper.cs
- ComplexBindingPropertiesAttribute.cs
- KoreanLunisolarCalendar.cs
- AttachedAnnotationChangedEventArgs.cs
- SqlDataSourceTableQuery.cs
- ProfileParameter.cs
- Math.cs
- TcpClientSocketManager.cs
- MimeObjectFactory.cs
- SetterBaseCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TextSegment.cs
- AspNetCompatibilityRequirementsAttribute.cs
- Condition.cs
- COM2ExtendedBrowsingHandler.cs
- XmlNamespaceMappingCollection.cs
- JsonFaultDetail.cs
- VarRemapper.cs
- PrtCap_Reader.cs
- FaultPropagationQuery.cs
- CompilerCollection.cs
- ActivityBindForm.cs
- PathGradientBrush.cs
- DataSourceView.cs
- DeploymentExceptionMapper.cs
- WebPartConnectionsDisconnectVerb.cs
- HtmlSelect.cs
- EnumBuilder.cs
- StateManagedCollection.cs
- ReadWriteSpinLock.cs
- AvTraceDetails.cs
- Clause.cs
- SqlNodeAnnotation.cs
- DataGridComboBoxColumn.cs
- EdmType.cs
- TreeNodeBindingCollection.cs
- SettingsSection.cs
- versioninfo.cs
- ReadOnlyCollectionBuilder.cs
- ListArgumentProvider.cs
- FrameworkElementFactory.cs
- DebugHandleTracker.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- HttpFileCollectionWrapper.cs
- ToolStripContentPanel.cs
- SqlDataSourceCache.cs
- PersonalizationProviderCollection.cs
- ListItemCollection.cs
- RbTree.cs
- TransformCryptoHandle.cs
- XmlIlGenerator.cs
- precedingquery.cs
- InternalDispatchObject.cs
- FtpWebRequest.cs