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
- DataGrid.cs
- ObjectConverter.cs
- SafeSecurityHandles.cs
- VectorCollection.cs
- AuthenticationSection.cs
- Point3DCollectionConverter.cs
- XmlElementAttribute.cs
- DisplayNameAttribute.cs
- ToolStripManager.cs
- GradientSpreadMethodValidation.cs
- ConfigurationManagerHelperFactory.cs
- DoubleConverter.cs
- RadioButtonRenderer.cs
- TypeSemantics.cs
- SafeRightsManagementQueryHandle.cs
- TextEffectResolver.cs
- Tracking.cs
- OleDragDropHandler.cs
- RotationValidation.cs
- GridViewActionList.cs
- LocatorPart.cs
- Directory.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WebConfigurationHostFileChange.cs
- SafeSecurityHandles.cs
- XomlSerializationHelpers.cs
- PopupRootAutomationPeer.cs
- MasterPageBuildProvider.cs
- DrawingVisual.cs
- XPathItem.cs
- HScrollProperties.cs
- GZipDecoder.cs
- SafeEventHandle.cs
- AggregatePushdown.cs
- RegistrationServices.cs
- SafeEventLogWriteHandle.cs
- UIElement.cs
- DataListItem.cs
- XamlPoint3DCollectionSerializer.cs
- PackUriHelper.cs
- basenumberconverter.cs
- ConfigurationSettings.cs
- EntityViewGenerationConstants.cs
- LogFlushAsyncResult.cs
- QuadraticBezierSegment.cs
- Assembly.cs
- CodeAssignStatement.cs
- QueueProcessor.cs
- XmlSchemaAppInfo.cs
- Util.cs
- CryptoStream.cs
- RijndaelManagedTransform.cs
- TableLayoutSettings.cs
- EntityDataSourceStatementEditorForm.cs
- TemplateBindingExpression.cs
- SqlConnectionPoolProviderInfo.cs
- XmlSchemaAnnotated.cs
- ToolStripContainer.cs
- XmlNamespaceManager.cs
- TranslateTransform3D.cs
- SafeMILHandleMemoryPressure.cs
- ComponentChangedEvent.cs
- DataGridViewComboBoxCell.cs
- BevelBitmapEffect.cs
- DoubleConverter.cs
- externdll.cs
- DynamicUpdateCommand.cs
- TerminatorSinks.cs
- ProfilePropertyMetadata.cs
- WebBrowserPermission.cs
- NoneExcludedImageIndexConverter.cs
- ToolStripHighContrastRenderer.cs
- DictionaryEntry.cs
- TextFindEngine.cs
- SQLDateTime.cs
- SubpageParagraph.cs
- DiscardableAttribute.cs
- TextRunTypographyProperties.cs
- DataGridViewHeaderCell.cs
- OutputCacheSettingsSection.cs
- XsltContext.cs
- ProgressBarHighlightConverter.cs
- SplitterDesigner.cs
- Baml2006ReaderFrame.cs
- PolicyStatement.cs
- XmlSchemaInfo.cs
- ReadOnlyHierarchicalDataSource.cs
- MailFileEditor.cs
- ListViewInsertionMark.cs
- EllipseGeometry.cs
- DataPager.cs
- Exceptions.cs
- MetadataSource.cs
- QueryConverter.cs
- KeyEventArgs.cs
- DataGridTablesFactory.cs
- TraceInternal.cs
- ChtmlCommandAdapter.cs
- COM2IPerPropertyBrowsingHandler.cs
- PlacementWorkspace.cs