Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataListItemCollection.cs
- CellTreeNode.cs
- Compiler.cs
- SafeMemoryMappedViewHandle.cs
- SmtpNegotiateAuthenticationModule.cs
- ModelPropertyImpl.cs
- TypeHelpers.cs
- AuthenticatedStream.cs
- XmlCharType.cs
- Table.cs
- ThreadSafeList.cs
- UpdateCompiler.cs
- EntityRecordInfo.cs
- FileVersion.cs
- SystemBrushes.cs
- XslException.cs
- TextEditorContextMenu.cs
- DesignerVerb.cs
- ChannelSinkStacks.cs
- Membership.cs
- DataControlLinkButton.cs
- Models.cs
- HttpFileCollection.cs
- WebPartVerbsEventArgs.cs
- ColorMap.cs
- Substitution.cs
- PenLineJoinValidation.cs
- StateChangeEvent.cs
- SynchronizingStream.cs
- SqlConnectionHelper.cs
- OptionUsage.cs
- PersistenceTask.cs
- XmlSchemaAll.cs
- BitArray.cs
- FlowNode.cs
- XmlSchemaSimpleTypeUnion.cs
- DiscreteKeyFrames.cs
- ArrayWithOffset.cs
- TcpClientCredentialType.cs
- PerformanceCounterManager.cs
- EncodingStreamWrapper.cs
- DragCompletedEventArgs.cs
- MainMenu.cs
- EndPoint.cs
- MachineKeyConverter.cs
- IdentityModelDictionary.cs
- CompositionAdorner.cs
- Triplet.cs
- WebPartCloseVerb.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ConfigXmlElement.cs
- EntityDataSourceChangingEventArgs.cs
- AppDomainResourcePerfCounters.cs
- SpecialNameAttribute.cs
- RegexCode.cs
- FontStretch.cs
- ExceptionHandler.cs
- SmiEventSink_Default.cs
- StorageMappingItemLoader.cs
- WebPartHeaderCloseVerb.cs
- StyleConverter.cs
- SystemIPInterfaceStatistics.cs
- unsafeIndexingFilterStream.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- Utils.cs
- RefType.cs
- IProvider.cs
- RectangleF.cs
- TargetPerspective.cs
- ToolStripActionList.cs
- StackSpiller.cs
- EventManager.cs
- JsonClassDataContract.cs
- CacheMemory.cs
- InfoCardSymmetricAlgorithm.cs
- ListViewGroupCollectionEditor.cs
- XmlHelper.cs
- Mouse.cs
- Rect3D.cs
- Brush.cs
- IISMapPath.cs
- IsolatedStorageFileStream.cs
- recordstatefactory.cs
- PropertyGridCommands.cs
- HttpResponse.cs
- SerializableAttribute.cs
- MetadataProperty.cs
- ObjectDataSourceSelectingEventArgs.cs
- ComponentManagerBroker.cs
- TraceHandlerErrorFormatter.cs
- SiteMapDataSourceView.cs
- SEHException.cs
- DocumentViewerHelper.cs
- ColumnTypeConverter.cs
- ColorBlend.cs
- LayoutSettings.cs
- ApplicationProxyInternal.cs
- Menu.cs
- ProfileManager.cs
- Query.cs