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
- CodeExpressionStatement.cs
- CorrelationManager.cs
- WebPartConnectionCollection.cs
- SemanticValue.cs
- ContainsRowNumberChecker.cs
- TableItemStyle.cs
- OrderedDictionary.cs
- DataBindingValueUIHandler.cs
- AccessibleObject.cs
- EntityContainerAssociationSetEnd.cs
- TypeLibConverter.cs
- MemberDescriptor.cs
- ObjectDataSourceDisposingEventArgs.cs
- TimeSpanParse.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- PagerSettings.cs
- OleDbStruct.cs
- BoolExpressionVisitors.cs
- GridViewEditEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- MediaElement.cs
- TextTreePropertyUndoUnit.cs
- ExpressionEvaluator.cs
- Helper.cs
- ShutDownListener.cs
- CompilerParameters.cs
- EnumerableRowCollection.cs
- FeatureSupport.cs
- MemberDomainMap.cs
- DataListItemEventArgs.cs
- WebServiceParameterData.cs
- SvcMapFileLoader.cs
- ColumnMapVisitor.cs
- InstanceDescriptor.cs
- ErrorWebPart.cs
- XPathAxisIterator.cs
- AssociationTypeEmitter.cs
- DrawingCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- GeneralTransform3DCollection.cs
- Point3DConverter.cs
- ToolboxItemSnapLineBehavior.cs
- BaseCollection.cs
- SetterBase.cs
- ExpressionBuilder.cs
- GeneralTransformGroup.cs
- SourceFileBuildProvider.cs
- ButtonAutomationPeer.cs
- ContainerParagraph.cs
- XmlSchemaObjectTable.cs
- DbConnectionPoolGroupProviderInfo.cs
- BaseTypeViewSchema.cs
- ObjectViewQueryResultData.cs
- xmlfixedPageInfo.cs
- SkipStoryboardToFill.cs
- ValidatedControlConverter.cs
- TableCell.cs
- MembershipPasswordException.cs
- DbRetry.cs
- QueryStringParameter.cs
- DrawingContext.cs
- ToolStripCustomTypeDescriptor.cs
- ParamArrayAttribute.cs
- PropertyDescriptorGridEntry.cs
- CodeDirectiveCollection.cs
- ImpersonationContext.cs
- BamlCollectionHolder.cs
- MonitoringDescriptionAttribute.cs
- HashSet.cs
- FormattedText.cs
- _CacheStreams.cs
- HitTestWithGeometryDrawingContextWalker.cs
- BitConverter.cs
- NodeFunctions.cs
- FunctionImportElement.cs
- ImageConverter.cs
- ListBindableAttribute.cs
- FieldNameLookup.cs
- PeerNodeTraceRecord.cs
- ProvidersHelper.cs
- ContentIterators.cs
- RootBrowserWindowProxy.cs
- ConcurrentDictionary.cs
- OracleNumber.cs
- Geometry.cs
- MediaPlayer.cs
- ObjectParameter.cs
- CallTemplateAction.cs
- MutexSecurity.cs
- ListBindableAttribute.cs
- PrimitiveCodeDomSerializer.cs
- IPEndPoint.cs
- NTAccount.cs
- TextSelectionHelper.cs
- RowToFieldTransformer.cs
- ColorPalette.cs
- XmlSignificantWhitespace.cs
- LoadedEvent.cs
- SortAction.cs
- Error.cs