Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / PenLineCapValidation.cs / 1 / PenLineCapValidation.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 IsPenLineCapValid(object valueObject) { PenLineCap value = (PenLineCap) valueObject; return (value == PenLineCap.Flat) || (value == PenLineCap.Square) || (value == PenLineCap.Round) || (value == PenLineCap.Triangle); } } } // 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 IsPenLineCapValid(object valueObject) { PenLineCap value = (PenLineCap) valueObject; return (value == PenLineCap.Flat) || (value == PenLineCap.Square) || (value == PenLineCap.Round) || (value == PenLineCap.Triangle); } } } // 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
- InstanceOwnerException.cs
- RegexCompilationInfo.cs
- SerTrace.cs
- WinEventWrap.cs
- CatalogPartChrome.cs
- WebPartDisplayMode.cs
- DescendantQuery.cs
- BitmapSizeOptions.cs
- PackWebResponse.cs
- RewritingValidator.cs
- PenThreadWorker.cs
- GridViewSelectEventArgs.cs
- SqlParameterizer.cs
- SymbolEqualComparer.cs
- HtmlElementEventArgs.cs
- SafeNativeMethods.cs
- StringUtil.cs
- SimpleWorkerRequest.cs
- AspProxy.cs
- CollectionConverter.cs
- CapabilitiesUse.cs
- ParameterBuilder.cs
- AttachedPropertyBrowsableAttribute.cs
- EventLogTraceListener.cs
- CounterCreationDataCollection.cs
- EntityCollection.cs
- Globals.cs
- DrawingCollection.cs
- ListViewItemEventArgs.cs
- SortQuery.cs
- QueryGeneratorBase.cs
- Sql8ConformanceChecker.cs
- WebDescriptionAttribute.cs
- ListItem.cs
- ValueTable.cs
- UserInitiatedNavigationPermission.cs
- NominalTypeEliminator.cs
- UnsafeNativeMethods.cs
- ValidationEventArgs.cs
- PaperSource.cs
- Int64Animation.cs
- propertyentry.cs
- RelatedEnd.cs
- TableDesigner.cs
- Contracts.cs
- HtmlTableRow.cs
- AuthenticationConfig.cs
- ServiceDebugBehavior.cs
- StringFormat.cs
- DelegateSerializationHolder.cs
- EdmComplexTypeAttribute.cs
- XmlSchemaCompilationSettings.cs
- ClickablePoint.cs
- ModelPerspective.cs
- PrePrepareMethodAttribute.cs
- EpmSourceTree.cs
- Propagator.ExtentPlaceholderCreator.cs
- GridEntryCollection.cs
- Int32AnimationBase.cs
- ChtmlTextWriter.cs
- EventLog.cs
- PointCollectionConverter.cs
- SingleKeyFrameCollection.cs
- InfoCardRSACryptoProvider.cs
- MethodSet.cs
- TdsParserStateObject.cs
- XmlCountingReader.cs
- ByteStreamMessageEncoderFactory.cs
- PlaceHolder.cs
- GACIdentityPermission.cs
- ImageSource.cs
- RichTextBoxAutomationPeer.cs
- XmlQuerySequence.cs
- XPathMultyIterator.cs
- TableStyle.cs
- TypeConverterHelper.cs
- PeerToPeerException.cs
- XamlSerializerUtil.cs
- OrthographicCamera.cs
- TypeLibConverter.cs
- WebResourceUtil.cs
- MetadataImporterQuotas.cs
- Stylus.cs
- SqlRowUpdatedEvent.cs
- SafeArchiveContext.cs
- TableLayoutStyle.cs
- WriteFileContext.cs
- SQLGuid.cs
- SessionState.cs
- KeyManager.cs
- TemplateBamlRecordReader.cs
- TextTrailingWordEllipsis.cs
- Variable.cs
- RootProfilePropertySettingsCollection.cs
- ProvidePropertyAttribute.cs
- ServerValidateEventArgs.cs
- WindowsTooltip.cs
- DeflateStream.cs
- BitmapEffectState.cs
- ObjectItemNoOpAssemblyLoader.cs