Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PrinterSettings.cs
- DictationGrammar.cs
- CommandArguments.cs
- DataControlFieldsEditor.cs
- DiscriminatorMap.cs
- ChannelTerminatedException.cs
- StyleTypedPropertyAttribute.cs
- ExpressionBuilderCollection.cs
- AnnotationHelper.cs
- SocketElement.cs
- TracingConnectionListener.cs
- Int16AnimationUsingKeyFrames.cs
- UIElement.cs
- Win32KeyboardDevice.cs
- safelink.cs
- CommonXSendMessage.cs
- SingleResultAttribute.cs
- Cursor.cs
- SqlLiftWhereClauses.cs
- InsufficientMemoryException.cs
- AnimationClock.cs
- DefaultAsyncDataDispatcher.cs
- SequentialOutput.cs
- ActivityScheduledRecord.cs
- NetworkAddressChange.cs
- ToolStripGripRenderEventArgs.cs
- StringCollection.cs
- PreviewPrintController.cs
- CanonicalXml.cs
- MethodSet.cs
- DataControlField.cs
- Point3DAnimationUsingKeyFrames.cs
- WindowsFormsLinkLabel.cs
- SqlNodeAnnotation.cs
- RangeValidator.cs
- Gdiplus.cs
- AsymmetricSignatureDeformatter.cs
- TextOptions.cs
- XmlSchemaNotation.cs
- _UncName.cs
- RuleRef.cs
- ConfigurationFileMap.cs
- QilScopedVisitor.cs
- ExtensionDataReader.cs
- SqlAggregateChecker.cs
- _ListenerAsyncResult.cs
- SubclassTypeValidator.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ProviderBase.cs
- NumericUpDownAcceleration.cs
- RecordManager.cs
- RequiredAttributeAttribute.cs
- OdbcHandle.cs
- MarkedHighlightComponent.cs
- BinaryConverter.cs
- OdbcErrorCollection.cs
- ScriptReferenceBase.cs
- TableStyle.cs
- TransformGroup.cs
- TimelineClockCollection.cs
- SHA384.cs
- FixedSOMFixedBlock.cs
- ReservationCollection.cs
- DrawingDrawingContext.cs
- DocumentGridContextMenu.cs
- RunClient.cs
- ListViewHitTestInfo.cs
- ToolStripPanelRow.cs
- WindowsListViewItemCheckBox.cs
- ConfigurationLocationCollection.cs
- SimpleApplicationHost.cs
- MaskedTextBox.cs
- FormsAuthenticationModule.cs
- CqlParserHelpers.cs
- XD.cs
- StrokeIntersection.cs
- SmiEventSink_DeferedProcessing.cs
- RSAPKCS1SignatureDeformatter.cs
- FileDialogPermission.cs
- WebPartDisplayModeEventArgs.cs
- PagesSection.cs
- DataRowView.cs
- ThaiBuddhistCalendar.cs
- CompilationPass2TaskInternal.cs
- JsonXmlDataContract.cs
- TimelineClockCollection.cs
- NextPreviousPagerField.cs
- InheritanceContextChangedEventManager.cs
- SqlClientFactory.cs
- PageAsyncTask.cs
- DtdParser.cs
- X509UI.cs
- IdentityElement.cs
- InvokeSchedule.cs
- TextCharacters.cs
- WorkflowRuntimeBehavior.cs
- RenderingEventArgs.cs
- MailBnfHelper.cs
- ParserHooks.cs
- SqlFunctions.cs