Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- PackageStore.cs
- TextLineBreak.cs
- rsa.cs
- BamlResourceSerializer.cs
- ItemList.cs
- MenuItemCollection.cs
- XmlWriterDelegator.cs
- ParseElement.cs
- SecondaryIndexDefinition.cs
- SessionStateModule.cs
- BidPrivateBase.cs
- SizeConverter.cs
- ControlParameter.cs
- IDQuery.cs
- PropertyPushdownHelper.cs
- CommandField.cs
- FileDialog_Vista.cs
- HttpCachePolicyElement.cs
- BitmapCodecInfo.cs
- WebPartConnectionsConfigureVerb.cs
- DbConnectionHelper.cs
- ManualResetEvent.cs
- WebPartMinimizeVerb.cs
- BatchWriter.cs
- VectorAnimationBase.cs
- AgileSafeNativeMemoryHandle.cs
- MetadataCache.cs
- DynamicValidatorEventArgs.cs
- Decoder.cs
- prompt.cs
- CaseDesigner.xaml.cs
- FontInfo.cs
- TreeView.cs
- AddInDeploymentState.cs
- RMPublishingDialog.cs
- ZipIOCentralDirectoryBlock.cs
- QuotedPairReader.cs
- TextEditorTyping.cs
- JumpList.cs
- CategoryGridEntry.cs
- SerializationSectionGroup.cs
- SiteMapHierarchicalDataSourceView.cs
- StreamingContext.cs
- MaskedTextBoxDesignerActionList.cs
- InfiniteIntConverter.cs
- WebPartMovingEventArgs.cs
- RenderDataDrawingContext.cs
- MissingMemberException.cs
- DecoderBestFitFallback.cs
- XmlImplementation.cs
- RSAProtectedConfigurationProvider.cs
- Triplet.cs
- SiteIdentityPermission.cs
- SortQuery.cs
- Parser.cs
- EnumValAlphaComparer.cs
- ProjectionCamera.cs
- IriParsingElement.cs
- MetabaseReader.cs
- ExpressionVisitor.cs
- SafeNativeMethods.cs
- ErrorTableItemStyle.cs
- OutOfMemoryException.cs
- CodeDOMProvider.cs
- HttpProtocolReflector.cs
- SQLDecimal.cs
- WindowsFormsSynchronizationContext.cs
- EncryptedXml.cs
- DataContext.cs
- EntityViewGenerationAttribute.cs
- HandledMouseEvent.cs
- CommonGetThemePartSize.cs
- TrackingRecordPreFilter.cs
- webbrowsersite.cs
- FieldReference.cs
- SupportingTokenProviderSpecification.cs
- PagesSection.cs
- SmtpClient.cs
- RedirectionProxy.cs
- MsmqNonTransactedPoisonHandler.cs
- httpstaticobjectscollection.cs
- DoubleLinkList.cs
- ImageClickEventArgs.cs
- XmlText.cs
- Effect.cs
- MouseEventArgs.cs
- NativeMethods.cs
- SizeChangedEventArgs.cs
- XamlTypeMapper.cs
- BitmapEffectInputConnector.cs
- WhitespaceRule.cs
- DynamicILGenerator.cs
- AnnotationResourceCollection.cs
- PageThemeParser.cs
- CopyNodeSetAction.cs
- ColumnTypeConverter.cs
- LeaseManager.cs
- ProcessInfo.cs
- ThumbAutomationPeer.cs
- DummyDataSource.cs