Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1 / 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
- ControllableStoryboardAction.cs
- XPathNodeList.cs
- ToolboxItemFilterAttribute.cs
- SelectionRangeConverter.cs
- RNGCryptoServiceProvider.cs
- RoutedUICommand.cs
- UTF32Encoding.cs
- BuildProviderCollection.cs
- PieceNameHelper.cs
- TextReader.cs
- DragAssistanceManager.cs
- WebPartVerb.cs
- PageFunction.cs
- Validator.cs
- ProfileParameter.cs
- DiffuseMaterial.cs
- PathFigure.cs
- SafeHandles.cs
- BindableTemplateBuilder.cs
- _SSPISessionCache.cs
- ContractReference.cs
- SetStateDesigner.cs
- LongValidatorAttribute.cs
- DescendentsWalkerBase.cs
- SessionState.cs
- TimeSpanStorage.cs
- Model3DCollection.cs
- SecurityCapabilities.cs
- XmlArrayItemAttribute.cs
- TextSearch.cs
- KeySplineConverter.cs
- QuotedStringWriteStateInfo.cs
- contentDescriptor.cs
- QilUnary.cs
- PointUtil.cs
- WmlListAdapter.cs
- _SslState.cs
- XmlElementAttributes.cs
- GenericTypeParameterBuilder.cs
- SafeHGlobalHandleCritical.cs
- SequenceDesigner.cs
- DataGridViewRowStateChangedEventArgs.cs
- EventLogSession.cs
- RelativeSource.cs
- CodeBinaryOperatorExpression.cs
- MessageEventSubscriptionService.cs
- TextBoxBase.cs
- Parsers.cs
- IsolatedStorageFile.cs
- CodeTypeReferenceExpression.cs
- RegexRunnerFactory.cs
- SocketPermission.cs
- DesignTimeParseData.cs
- Monitor.cs
- RelationshipDetailsRow.cs
- DataControlButton.cs
- Environment.cs
- AnnouncementSendsAsyncResult.cs
- TiffBitmapDecoder.cs
- _NegoStream.cs
- MessageQueuePermissionEntry.cs
- CommandLibraryHelper.cs
- OracleCommandSet.cs
- Image.cs
- RSAOAEPKeyExchangeFormatter.cs
- HtmlToClrEventProxy.cs
- DBConnection.cs
- Stackframe.cs
- Rect3DValueSerializer.cs
- MoveSizeWinEventHandler.cs
- DynamicFilter.cs
- input.cs
- PassportAuthenticationModule.cs
- ControlAdapter.cs
- DisplayMemberTemplateSelector.cs
- ButtonFieldBase.cs
- SettingsContext.cs
- GestureRecognitionResult.cs
- CodeAccessPermission.cs
- SqlDataSourceConfigureSelectPanel.cs
- Classification.cs
- PrivilegeNotHeldException.cs
- BuildProvider.cs
- SqlBulkCopyColumnMappingCollection.cs
- WhereQueryOperator.cs
- Material.cs
- Command.cs
- ApplicationDirectory.cs
- XmlProcessingInstruction.cs
- MetaModel.cs
- WorkflowMarkupSerializationException.cs
- XmlAttributeProperties.cs
- DbParameterHelper.cs
- SafeRegistryHandle.cs
- SafeNativeMethodsOther.cs
- DataGridRowDetailsEventArgs.cs
- FileSystemWatcher.cs
- SmiRequestExecutor.cs
- QueryReaderSettings.cs
- InstalledFontCollection.cs