Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ServiceManagerHandle.cs
- ModelVisual3D.cs
- UIElement3D.cs
- DataSourceHelper.cs
- RootProfilePropertySettingsCollection.cs
- StringConverter.cs
- TemplateEditingVerb.cs
- HTTPNotFoundHandler.cs
- SqlProcedureAttribute.cs
- AnonymousIdentificationSection.cs
- DbConnectionFactory.cs
- DocumentApplication.cs
- Table.cs
- GlyphRunDrawing.cs
- AsyncResult.cs
- WebPartConnectionsCancelVerb.cs
- AutomationFocusChangedEventArgs.cs
- Pen.cs
- FormClosedEvent.cs
- MenuItemBinding.cs
- DataSourceControlBuilder.cs
- TextEditorDragDrop.cs
- TraceHandlerErrorFormatter.cs
- WebServiceParameterData.cs
- CollaborationHelperFunctions.cs
- ViewgenGatekeeper.cs
- TitleStyle.cs
- WorkflowQueuingService.cs
- ProfileParameter.cs
- TableLayoutSettings.cs
- UpdatePanelTriggerCollection.cs
- FixedSOMPage.cs
- FocusTracker.cs
- RecordBuilder.cs
- PriorityItem.cs
- CommonRemoteMemoryBlock.cs
- ContextMenu.cs
- ViewStateException.cs
- ConfigurationLockCollection.cs
- ProfileSettings.cs
- GridViewDeletedEventArgs.cs
- XmlDomTextWriter.cs
- SiteMap.cs
- ImageFormat.cs
- InputLanguageManager.cs
- SqlConnectionStringBuilder.cs
- Utils.cs
- Script.cs
- GeometryValueSerializer.cs
- FixedPageStructure.cs
- DPCustomTypeDescriptor.cs
- DataGridViewComboBoxCell.cs
- SurrogateEncoder.cs
- ListItemViewControl.cs
- CodeNamespace.cs
- XmlHierarchicalEnumerable.cs
- FixedPageStructure.cs
- XPathExpr.cs
- UdpMessageProperty.cs
- SettingsPropertyIsReadOnlyException.cs
- SizeKeyFrameCollection.cs
- XmlDataProvider.cs
- NetStream.cs
- HttpBindingExtension.cs
- UIElementPropertyUndoUnit.cs
- OleDbParameter.cs
- FormattedTextSymbols.cs
- GeneralTransform3DTo2D.cs
- MouseGestureValueSerializer.cs
- GuidelineCollection.cs
- ColorConvertedBitmapExtension.cs
- DataReaderContainer.cs
- UIElementCollection.cs
- DeclarativeCatalogPart.cs
- WebServiceMethodData.cs
- Accessible.cs
- MarkupWriter.cs
- PasswordBox.cs
- BulletedListEventArgs.cs
- StreamWithDictionary.cs
- HttpWebRequestElement.cs
- EventMap.cs
- ComponentCollection.cs
- DispatchWrapper.cs
- ContextStaticAttribute.cs
- SiteIdentityPermission.cs
- figurelengthconverter.cs
- ObjectDataSourceSelectingEventArgs.cs
- LineInfo.cs
- XmlSchemaValidationException.cs
- UpDownBase.cs
- RemoteWebConfigurationHost.cs
- SignatureDescription.cs
- StreamGeometryContext.cs
- DataServiceResponse.cs
- SizeIndependentAnimationStorage.cs
- XmlSerializerFactory.cs
- NaturalLanguageHyphenator.cs
- AssemblyBuilder.cs
- SqlUserDefinedAggregateAttribute.cs