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
- DataGridCellClipboardEventArgs.cs
- ReadOnlyAttribute.cs
- ToolStripSplitButton.cs
- FixedSOMPageConstructor.cs
- XmlnsPrefixAttribute.cs
- DbConnectionPoolCounters.cs
- DataGrid.cs
- BasicBrowserDialog.cs
- ProcessHostConfigUtils.cs
- ThreadStaticAttribute.cs
- GCHandleCookieTable.cs
- ContextQuery.cs
- SortedDictionary.cs
- LayeredChannelFactory.cs
- RSAOAEPKeyExchangeFormatter.cs
- RegexGroup.cs
- ToolstripProfessionalRenderer.cs
- Rectangle.cs
- MetadataHelper.cs
- SemanticResultKey.cs
- CustomErrorsSection.cs
- DesignerActionHeaderItem.cs
- AsyncResult.cs
- DoubleCollectionConverter.cs
- GuidConverter.cs
- ColumnHeader.cs
- FtpWebRequest.cs
- WebEvents.cs
- EditorZoneBase.cs
- AutoGeneratedField.cs
- ProgressBarBrushConverter.cs
- XmlSchemaObjectTable.cs
- ThreadSafeList.cs
- CheckBoxRenderer.cs
- ProjectionRewriter.cs
- BaseAppDomainProtocolHandler.cs
- HtmlControlDesigner.cs
- Viewport2DVisual3D.cs
- PointUtil.cs
- DotExpr.cs
- SchemaCreator.cs
- DbParameterHelper.cs
- ProcessingInstructionAction.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- FlowDocumentPaginator.cs
- ScriptingSectionGroup.cs
- HostingEnvironmentSection.cs
- RenderDataDrawingContext.cs
- Font.cs
- AutoResetEvent.cs
- TextEncodedRawTextWriter.cs
- SerializableAttribute.cs
- ColorConverter.cs
- DetailsViewInsertedEventArgs.cs
- RectangleGeometry.cs
- SystemIPGlobalProperties.cs
- AnimatedTypeHelpers.cs
- ConnectionManagementElement.cs
- DispatcherOperation.cs
- QueryContinueDragEvent.cs
- Substitution.cs
- UserCancellationException.cs
- SmiGettersStream.cs
- Utils.cs
- BinaryReader.cs
- PropertyGridEditorPart.cs
- CodeDesigner.cs
- MonthCalendar.cs
- ContentFilePart.cs
- ToolStripSeparator.cs
- BufferManager.cs
- WithParamAction.cs
- OutputScopeManager.cs
- ZipIOExtraFieldElement.cs
- DragCompletedEventArgs.cs
- SecurityChannel.cs
- SafeProcessHandle.cs
- ObjectDisposedException.cs
- HtmlForm.cs
- Empty.cs
- ModuleBuilderData.cs
- LineBreakRecord.cs
- DBSchemaTable.cs
- NeutralResourcesLanguageAttribute.cs
- MultiSelectRootGridEntry.cs
- ControlBuilder.cs
- SqlTypesSchemaImporter.cs
- _StreamFramer.cs
- IDispatchConstantAttribute.cs
- ObjectQueryExecutionPlan.cs
- XmlSchemaSet.cs
- ImageMap.cs
- Stylesheet.cs
- InputMethodStateTypeInfo.cs
- PolicyUtility.cs
- ContextQuery.cs
- PreservationFileWriter.cs
- CodeIterationStatement.cs
- Guid.cs
- BuildProvider.cs