Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1305600 / TextDecorationLocationValidation.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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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
- EmptyReadOnlyDictionaryInternal.cs
- ProxySimple.cs
- HyperlinkAutomationPeer.cs
- ResourceSetExpression.cs
- ThrowOnMultipleAssignment.cs
- ListViewInsertedEventArgs.cs
- WebPartDescriptionCollection.cs
- TextRunTypographyProperties.cs
- GroupStyle.cs
- PasswordTextNavigator.cs
- ListViewGroupItemCollection.cs
- SelectorItemAutomationPeer.cs
- messageonlyhwndwrapper.cs
- ExceptionHandlersDesigner.cs
- MaskedTextProvider.cs
- WorkflowMarkupSerializerMapping.cs
- SqlTransaction.cs
- UrlPropertyAttribute.cs
- Path.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DataControlExtensions.cs
- FormatSettings.cs
- ToolStripItemCollection.cs
- WebServiceMethodData.cs
- CollectionContainer.cs
- InvokeCompletedEventArgs.cs
- StylusPointPropertyInfo.cs
- Mapping.cs
- InfoCardRequestException.cs
- ZipIOBlockManager.cs
- DataGridHeaderBorder.cs
- MimeFormatter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SqlMethods.cs
- EventLog.cs
- MessageVersion.cs
- ComPlusServiceHost.cs
- WindowShowOrOpenTracker.cs
- WeakReferenceList.cs
- Evidence.cs
- TransformPattern.cs
- DesignerSerializationManager.cs
- PropertyReferenceSerializer.cs
- CursorInteropHelper.cs
- XmlTypeAttribute.cs
- FieldBuilder.cs
- InitializerFacet.cs
- ProviderSettings.cs
- DesignerAttribute.cs
- RadioButtonStandardAdapter.cs
- PrintDocument.cs
- COSERVERINFO.cs
- CustomAttribute.cs
- Icon.cs
- TextRenderer.cs
- CaseStatement.cs
- safelinkcollection.cs
- RewritingProcessor.cs
- ProfileService.cs
- ButtonBase.cs
- Control.cs
- ToolStripItemCollection.cs
- Rotation3DKeyFrameCollection.cs
- IgnoreSectionHandler.cs
- OutputCacheModule.cs
- ClientBuildManagerCallback.cs
- DatePickerDateValidationErrorEventArgs.cs
- WMIInterop.cs
- SplitterCancelEvent.cs
- TargetInvocationException.cs
- ModelFactory.cs
- AssemblyAttributes.cs
- TextContainerHelper.cs
- DataColumnChangeEvent.cs
- ValidationResults.cs
- IconHelper.cs
- Boolean.cs
- RawUIStateInputReport.cs
- adornercollection.cs
- ConfigXmlComment.cs
- ImageFormatConverter.cs
- ScaleTransform3D.cs
- ParentQuery.cs
- LicenseManager.cs
- ObjectDataSourceMethodEventArgs.cs
- ProbeDuplex11AsyncResult.cs
- PolyBezierSegment.cs
- RowBinding.cs
- CookieHandler.cs
- SimplePropertyEntry.cs
- XmlSchemaImport.cs
- PassportAuthenticationEventArgs.cs
- ObjectMemberMapping.cs
- OdbcEnvironmentHandle.cs
- UpDownBase.cs
- FixedSOMSemanticBox.cs
- WhitespaceRule.cs
- SimpleWorkerRequest.cs
- TextSelectionHelper.cs
- Activity.cs