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
- BooleanConverter.cs
- SystemWebExtensionsSectionGroup.cs
- MessageDecoder.cs
- RelatedPropertyManager.cs
- ResourceReader.cs
- DbDataAdapter.cs
- DescriptionAttribute.cs
- WCFBuildProvider.cs
- AdCreatedEventArgs.cs
- TreeNodeCollection.cs
- dsa.cs
- TdsParserStateObject.cs
- ToolZone.cs
- CellNormalizer.cs
- _HeaderInfoTable.cs
- AutomationProperties.cs
- Keyboard.cs
- OdbcParameter.cs
- PtsCache.cs
- BindingSource.cs
- webproxy.cs
- UIElementIsland.cs
- TaskDesigner.cs
- SqlUnionizer.cs
- ProcessHost.cs
- ArrayMergeHelper.cs
- SharedUtils.cs
- DataSourceCache.cs
- PointAnimation.cs
- ResXResourceWriter.cs
- LassoHelper.cs
- AmbiguousMatchException.cs
- UrlAuthorizationModule.cs
- SqlDeflator.cs
- StrokeRenderer.cs
- GridViewUpdatedEventArgs.cs
- SemanticResultKey.cs
- XmlHierarchyData.cs
- ToolStripControlHost.cs
- DockProviderWrapper.cs
- ReflectionUtil.cs
- XmlSchemaSet.cs
- AudioBase.cs
- HtmlLabelAdapter.cs
- AssemblyBuilder.cs
- Help.cs
- Utils.cs
- DataGridViewCellCollection.cs
- TransformCollection.cs
- ExceptionHandlersDesigner.cs
- TextBox.cs
- BaseParagraph.cs
- ProcessModelInfo.cs
- UnmanagedBitmapWrapper.cs
- HotSpotCollection.cs
- OracleBoolean.cs
- StorageFunctionMapping.cs
- ApplicationFileCodeDomTreeGenerator.cs
- QEncodedStream.cs
- GPRECT.cs
- OneToOneMappingSerializer.cs
- JsonDeserializer.cs
- ModifierKeysValueSerializer.cs
- mongolianshape.cs
- AttachmentService.cs
- DeploymentExceptionMapper.cs
- ResourcePermissionBase.cs
- EtwTrace.cs
- UnauthorizedWebPart.cs
- SmiRecordBuffer.cs
- MetafileHeader.cs
- ParallelTimeline.cs
- SplashScreenNativeMethods.cs
- ThreadStartException.cs
- DataSourceView.cs
- CompilerCollection.cs
- DataGridRow.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BufferedStream.cs
- BindingExpression.cs
- IteratorFilter.cs
- xml.cs
- Highlights.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- SequentialWorkflowRootDesigner.cs
- IconBitmapDecoder.cs
- TextTreeUndo.cs
- SecurityPolicySection.cs
- RemotingService.cs
- CallContext.cs
- MediaTimeline.cs
- EmptyStringExpandableObjectConverter.cs
- ExpressionLexer.cs
- DtrList.cs
- HTTPRemotingHandler.cs
- CombinedGeometry.cs
- HttpCookie.cs
- CompiledIdentityConstraint.cs
- AnnouncementEventArgs.cs
- Nullable.cs