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
- ConfigurationManagerInternal.cs
- SynchronizationScope.cs
- CheckBoxRenderer.cs
- BitmapFrameDecode.cs
- Win32SafeHandles.cs
- UserControl.cs
- DefaultObjectMappingItemCollection.cs
- Repeater.cs
- DataMemberAttribute.cs
- RequestBringIntoViewEventArgs.cs
- RequiredAttributeAttribute.cs
- RectangleConverter.cs
- TargetException.cs
- CharKeyFrameCollection.cs
- CustomErrorsSection.cs
- Padding.cs
- SmtpMail.cs
- XmlElement.cs
- DateTimeConverter.cs
- HandledEventArgs.cs
- ReaderContextStackData.cs
- ActivityTypeDesigner.xaml.cs
- IPAddress.cs
- manifestimages.cs
- CallbackBehaviorAttribute.cs
- ClaimSet.cs
- SafeFileHandle.cs
- Win32PrintDialog.cs
- HtmlTernaryTree.cs
- SessionKeyExpiredException.cs
- DockAndAnchorLayout.cs
- Calendar.cs
- DynamicDataRouteHandler.cs
- FlowDocumentReader.cs
- Char.cs
- sitestring.cs
- Size.cs
- AppearanceEditorPart.cs
- FunctionImportMapping.cs
- BinaryFormatter.cs
- SendActivityDesignerTheme.cs
- RtfControlWordInfo.cs
- SoapReflector.cs
- BrowserCapabilitiesCodeGenerator.cs
- EnvelopedSignatureTransform.cs
- ErrorWebPart.cs
- ConnectionStringsExpressionBuilder.cs
- ProjectionPlanCompiler.cs
- TextOnlyOutput.cs
- ToolStripSplitButton.cs
- EDesignUtil.cs
- ByteStreamGeometryContext.cs
- ChannelServices.cs
- FileDialog.cs
- DataGridColumn.cs
- X509CertificateValidator.cs
- PropertyCollection.cs
- JumpPath.cs
- EventPropertyMap.cs
- OverlappedContext.cs
- PathFigureCollection.cs
- DetailsViewUpdateEventArgs.cs
- SpellerInterop.cs
- TypeContext.cs
- XamlSerializer.cs
- RangeValuePattern.cs
- PropertyManager.cs
- Pkcs7Recipient.cs
- SqlDataSourceRefreshSchemaForm.cs
- Dispatcher.cs
- Debug.cs
- ComponentEditorForm.cs
- NavigationWindow.cs
- SqlAliasesReferenced.cs
- RuntimeArgumentHandle.cs
- Font.cs
- FixUp.cs
- ScriptReference.cs
- ResolveRequestResponseAsyncResult.cs
- MtomMessageEncodingBindingElement.cs
- DurableEnlistmentState.cs
- SqlBooleanMismatchVisitor.cs
- LogExtentCollection.cs
- UnionCodeGroup.cs
- ListViewUpdateEventArgs.cs
- InvocationExpression.cs
- ContentFilePart.cs
- OleDbPropertySetGuid.cs
- SoapBinding.cs
- IgnoreFlushAndCloseStream.cs
- ToolStripDropDownMenu.cs
- EventLogPermissionEntryCollection.cs
- UInt32.cs
- VerificationAttribute.cs
- hebrewshape.cs
- FormViewCommandEventArgs.cs
- LineBreakRecord.cs
- FixedTextContainer.cs
- ComponentChangingEvent.cs
- RowParagraph.cs