Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1305600 / 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
- XhtmlBasicValidatorAdapter.cs
- FormViewPageEventArgs.cs
- TimeSpanValidatorAttribute.cs
- DataColumnSelectionConverter.cs
- ComponentTray.cs
- ComplexTypeEmitter.cs
- RawStylusInput.cs
- EventLogEntryCollection.cs
- InstanceDescriptor.cs
- uribuilder.cs
- columnmapfactory.cs
- TdsParser.cs
- EventArgs.cs
- ArrangedElementCollection.cs
- Part.cs
- ToolStripDropDownClosingEventArgs.cs
- GlobalizationSection.cs
- CodeDomSerializationProvider.cs
- BitmapEffectOutputConnector.cs
- ComplexTypeEmitter.cs
- SubpageParagraph.cs
- ServicePointManager.cs
- XPathBinder.cs
- HebrewNumber.cs
- Button.cs
- CodeDirectionExpression.cs
- DataGridViewCellStyleConverter.cs
- DerivedKeySecurityTokenStub.cs
- EventBookmark.cs
- CommonProperties.cs
- _CommandStream.cs
- Stack.cs
- DataBindingHandlerAttribute.cs
- WorkflowControlEndpoint.cs
- SID.cs
- EntityPropertyMappingAttribute.cs
- Geometry.cs
- SimpleTextLine.cs
- SharedTcpTransportManager.cs
- SwitchAttribute.cs
- DataSourceGroupCollection.cs
- DelegateArgument.cs
- COAUTHIDENTITY.cs
- SafeMemoryMappedFileHandle.cs
- XmlAttributeCache.cs
- FontInfo.cs
- WebPartTransformerAttribute.cs
- OrderingInfo.cs
- X500Name.cs
- SynchronizationLockException.cs
- HtmlImage.cs
- ValidationPropertyAttribute.cs
- Profiler.cs
- SafeNativeMethodsMilCoreApi.cs
- FacetChecker.cs
- DataListItem.cs
- WindowsGraphics.cs
- TypefaceMetricsCache.cs
- ReferenceEqualityComparer.cs
- WebBrowsableAttribute.cs
- PartBasedPackageProperties.cs
- StringFunctions.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- PrefixHandle.cs
- TextRunCache.cs
- OperationContext.cs
- HostingEnvironment.cs
- LocatorBase.cs
- ParserContext.cs
- AutomationIdentifier.cs
- ContainerFilterService.cs
- SqlBinder.cs
- Parser.cs
- DispatchWrapper.cs
- TextOnlyOutput.cs
- RoleGroupCollection.cs
- ProgressBar.cs
- OrderPreservingMergeHelper.cs
- PerfCounters.cs
- ResourceDescriptionAttribute.cs
- SortedDictionary.cs
- ValidationEventArgs.cs
- TreeView.cs
- XmlSchemaCompilationSettings.cs
- AccessedThroughPropertyAttribute.cs
- RichTextBoxAutomationPeer.cs
- CompositeActivityValidator.cs
- PointLightBase.cs
- BaseCollection.cs
- AttributeProviderAttribute.cs
- UIPermission.cs
- SafeCoTaskMem.cs
- DBConcurrencyException.cs
- GeometryGroup.cs
- BrowserDefinitionCollection.cs
- PagerSettings.cs
- InputScopeManager.cs
- AsyncResult.cs
- ToolStripPanel.cs
- DataTableClearEvent.cs