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
- BaseTemplateParser.cs
- IPGlobalProperties.cs
- LifetimeServices.cs
- MobileControlsSection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DataGridViewCellConverter.cs
- VersionedStreamOwner.cs
- Vector3DAnimationUsingKeyFrames.cs
- TextFormatter.cs
- SeekableMessageNavigator.cs
- DataTableTypeConverter.cs
- DoubleStorage.cs
- GridViewRowPresenter.cs
- ValueConversionAttribute.cs
- QuaternionConverter.cs
- HttpRawResponse.cs
- QueryStringParameter.cs
- ListViewSortEventArgs.cs
- __Error.cs
- ResourceAssociationType.cs
- XmlByteStreamWriter.cs
- SecurityHeaderTokenResolver.cs
- EntityParameter.cs
- SqlClientPermission.cs
- FloaterBaseParagraph.cs
- SafeWaitHandle.cs
- DateTimeConstantAttribute.cs
- SingleResultAttribute.cs
- Semaphore.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- WebPartTracker.cs
- CollectionConverter.cs
- LinearKeyFrames.cs
- CrossSiteScriptingValidation.cs
- sqlstateclientmanager.cs
- RecordManager.cs
- DocumentReference.cs
- DesignerTransaction.cs
- DbParameterCollectionHelper.cs
- XmlEventCache.cs
- IPHostEntry.cs
- CannotUnloadAppDomainException.cs
- ActivityCodeDomSerializer.cs
- SafeThemeHandle.cs
- NameTable.cs
- HtmlSelect.cs
- XmlUnspecifiedAttribute.cs
- PhysicalOps.cs
- Encoding.cs
- CharacterHit.cs
- AppDomain.cs
- DrawingGroup.cs
- ElementInit.cs
- IODescriptionAttribute.cs
- SparseMemoryStream.cs
- ToolBarDesigner.cs
- SqlDataSourceQueryEditorForm.cs
- ConnectorDragDropGlyph.cs
- Message.cs
- DesignSurfaceServiceContainer.cs
- MenuDesigner.cs
- InteropBitmapSource.cs
- FontNamesConverter.cs
- DBBindings.cs
- ScrollData.cs
- WindowsFormsHostAutomationPeer.cs
- WorkBatch.cs
- NonClientArea.cs
- SynchronizedInputPattern.cs
- BinaryObjectInfo.cs
- SizeLimitedCache.cs
- DBCommand.cs
- ParserHooks.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Variable.cs
- IxmlLineInfo.cs
- PerformanceCounterLib.cs
- ReaderContextStackData.cs
- StringConverter.cs
- TemplateKeyConverter.cs
- XmlHierarchicalEnumerable.cs
- MyContact.cs
- InputQueue.cs
- OrthographicCamera.cs
- HtmlTableRow.cs
- StylusOverProperty.cs
- Symbol.cs
- Misc.cs
- CompilerTypeWithParams.cs
- EventManager.cs
- AxisAngleRotation3D.cs
- XmlAnyAttributeAttribute.cs
- StreamReader.cs
- MediaScriptCommandRoutedEventArgs.cs
- InteropAutomationProvider.cs
- Double.cs
- DesignTimeData.cs
- ProxyWebPartManager.cs
- ItemMap.cs
- EnumerableRowCollectionExtensions.cs