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
- SqlTrackingWorkflowInstance.cs
- BasicViewGenerator.cs
- Validator.cs
- Point3DConverter.cs
- SystemTcpConnection.cs
- WhileDesigner.xaml.cs
- SqlFormatter.cs
- odbcmetadatacollectionnames.cs
- StreamGeometryContext.cs
- WebPartsSection.cs
- ScriptingRoleServiceSection.cs
- OSFeature.cs
- CssTextWriter.cs
- login.cs
- ZipIOLocalFileHeader.cs
- TerminatorSinks.cs
- ProvidersHelper.cs
- UrlMapping.cs
- ItemsControlAutomationPeer.cs
- IsolatedStoragePermission.cs
- CroppedBitmap.cs
- InteropAutomationProvider.cs
- XamlToRtfParser.cs
- MatrixValueSerializer.cs
- AppDomainProtocolHandler.cs
- AxisAngleRotation3D.cs
- MenuItemAutomationPeer.cs
- DoubleAnimation.cs
- AuthenticationModulesSection.cs
- ObjectDataSourceSelectingEventArgs.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- ByteStack.cs
- NamespaceInfo.cs
- OdbcCommandBuilder.cs
- ContourSegment.cs
- ListenerConnectionModeReader.cs
- ProcessModelInfo.cs
- DataStorage.cs
- rsa.cs
- Tablet.cs
- DefaultShape.cs
- DetailsViewInsertedEventArgs.cs
- CodeSnippetExpression.cs
- SocketPermission.cs
- User.cs
- DocumentViewerBaseAutomationPeer.cs
- MenuItemAutomationPeer.cs
- CounterCreationDataCollection.cs
- EdmScalarPropertyAttribute.cs
- CellCreator.cs
- InkCanvasAutomationPeer.cs
- GiveFeedbackEvent.cs
- IdentitySection.cs
- BlurEffect.cs
- TreeNodeCollectionEditorDialog.cs
- OleDbConnection.cs
- ReadOnlyTernaryTree.cs
- TextEditor.cs
- RangeContentEnumerator.cs
- ListMarkerSourceInfo.cs
- LocatorGroup.cs
- DesignerLabelAdapter.cs
- StyleXamlParser.cs
- EndpointPerformanceCounters.cs
- AppDomainUnloadedException.cs
- OleDbException.cs
- UserControlCodeDomTreeGenerator.cs
- AttributeTableBuilder.cs
- FixedSOMContainer.cs
- UrlAuthFailedErrorFormatter.cs
- DesignerSerializerAttribute.cs
- WpfWebRequestHelper.cs
- OdbcDataReader.cs
- ProfileManager.cs
- PointCollection.cs
- XmlSerializerSection.cs
- DefaultSerializationProviderAttribute.cs
- TextCollapsingProperties.cs
- TextTreePropertyUndoUnit.cs
- FormViewModeEventArgs.cs
- TemplatePropertyEntry.cs
- IntegerValidator.cs
- MatrixAnimationUsingKeyFrames.cs
- EmbeddedMailObjectsCollection.cs
- PageThemeBuildProvider.cs
- CounterNameConverter.cs
- X509ChainElement.cs
- BStrWrapper.cs
- Point3D.cs
- X509Certificate.cs
- HandleCollector.cs
- ConfigXmlText.cs
- AdapterSwitches.cs
- SettingsBindableAttribute.cs
- FileDialogCustomPlacesCollection.cs
- Directory.cs
- ActivationWorker.cs
- MarkupExtensionParser.cs
- SimpleApplicationHost.cs
- Assembly.cs