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
- sqlnorm.cs
- SHA1Managed.cs
- CommandManager.cs
- FrameworkContentElement.cs
- ContextBase.cs
- GenericTypeParameterBuilder.cs
- TcpAppDomainProtocolHandler.cs
- ServiceBusyException.cs
- _HeaderInfoTable.cs
- _LazyAsyncResult.cs
- sqlcontext.cs
- ObjectDataSourceDisposingEventArgs.cs
- FontNameEditor.cs
- HttpCachePolicyWrapper.cs
- IPEndPointCollection.cs
- StrokeNodeData.cs
- CommonDialog.cs
- StylusCollection.cs
- ConfigsHelper.cs
- DataTableCollection.cs
- XmlRawWriterWrapper.cs
- UInt32Storage.cs
- DesignTimeSiteMapProvider.cs
- AdapterUtil.cs
- TabControlEvent.cs
- AssemblyHash.cs
- RequestQueue.cs
- InkPresenterAutomationPeer.cs
- DescendantBaseQuery.cs
- ProviderBase.cs
- ProfessionalColors.cs
- MarshalByRefObject.cs
- RowBinding.cs
- EnvelopedSignatureTransform.cs
- assertwrapper.cs
- DesignerForm.cs
- ExpressionBindingCollection.cs
- ScrollItemProviderWrapper.cs
- isolationinterop.cs
- XmlSchemaFacet.cs
- ReverseComparer.cs
- Comparer.cs
- XmlExpressionDumper.cs
- iisPickupDirectory.cs
- Internal.cs
- EntityDataSourceContainerNameConverter.cs
- CollectionChangedEventManager.cs
- TrackingLocationCollection.cs
- BaseParser.cs
- AudioDeviceOut.cs
- SectionRecord.cs
- PrintPreviewControl.cs
- MarginsConverter.cs
- LinqDataSourceInsertEventArgs.cs
- XmlnsCache.cs
- XmlNodeChangedEventArgs.cs
- ChangePasswordAutoFormat.cs
- Resources.Designer.cs
- MimeParameters.cs
- CompilerGeneratedAttribute.cs
- KeySplineConverter.cs
- TextElement.cs
- ACL.cs
- WebPartDeleteVerb.cs
- _SslStream.cs
- SQlBooleanStorage.cs
- PropertyPathConverter.cs
- ObjectDataProvider.cs
- DragStartedEventArgs.cs
- NamespaceQuery.cs
- ReliableReplySessionChannel.cs
- OdbcConnectionFactory.cs
- DoubleLinkList.cs
- Ipv6Element.cs
- HttpSessionStateWrapper.cs
- ActivityCodeGenerator.cs
- HTMLTextWriter.cs
- MatrixCamera.cs
- PolicyVersionConverter.cs
- MembershipAdapter.cs
- CodeDomLocalizationProvider.cs
- InProcStateClientManager.cs
- XmlDeclaration.cs
- Point3DIndependentAnimationStorage.cs
- ColumnResizeUndoUnit.cs
- HMACMD5.cs
- FormsAuthenticationEventArgs.cs
- _LocalDataStoreMgr.cs
- TileBrush.cs
- SafeCoTaskMem.cs
- Profiler.cs
- UpdateException.cs
- UnaryNode.cs
- Repeater.cs
- HwndProxyElementProvider.cs
- BaseCollection.cs
- DoubleLink.cs
- HostAdapter.cs
- DesignTimeTemplateParser.cs
- RowParagraph.cs